def test(self): local_target = conf.get_target_detail(target_type, lea_type) local_lea = lea_type local_rmc = conf.RMC local_status = conf.STATUS['decline'] print local_target, local_lea, local_rmc, local_status
def test(self): local_driver = self.driver local_target = conf.get_target_detail(target_type, lea_type) local_lea = lea_type local_rmc = conf.RMC local_status = conf.STATUS['deact'] try: # Activation request by LEA target.deactivate(local_driver, local_target, local_lea, local_lea) # Approving from RMC approval.approve(local_driver, local_target, local_rmc, "deactivation") print "Status@RMC" final_status = status.verify(local_driver, local_target, local_rmc, local_lea, local_status) self.assertTrue(final_status == local_status, local_target['id'] + " not deactivated and its status is " + final_status) print "Status@LEA" final_status = status.verify(local_driver, local_target, local_lea, local_lea, local_status) self.assertTrue(final_status == local_status, local_target['id'] + " not deactivated and its status is " + final_status) except Exception as e: print e local_driver.get_screenshot_as_file('/tmp/%s_%s.png' % (self.TC_NAME, self.NOW)) logout(local_driver) exit()
def test_prov_multiple_t4_by_national_lemf(self): local_driver = self.driver local_target = conf.get_target_detail(conf.LOCAL, conf.NLEMF) local_lea = conf.NLEMF local_rmc = conf.RMC for i in range(0,1000): local_target['id'] = str(9818400000 + i) local_target['number'] = '91'+local_target['id'] print local_target['id'], local_target['number'] target.activate(local_driver, local_target, local_lea)
def test_prov_multiple_t1_by_state_lea(self): local_driver = self.driver local_target = conf.get_target_detail(conf.LOCAL, conf.SLEA) local_lea = conf.SLEA local_rmc = conf.RMC for i in range(0,1000): local_target['id'] = str(9818100000 + i) local_target['number'] = '91'+local_target['id'] print local_target['id'], local_target['number'] target.activate(local_driver, local_target, local_lea)
def test_prov_multiple_t3_by_national_lea(self): local_driver = self.driver local_target = conf.get_target_detail(conf.LOCAL, conf.NLEA) local_lea = conf.NLEA local_rmc = conf.RMC for i in range(0,1000): local_target['id'] = str(9818300000 + i) local_target['number'] = '91'+local_target['id'] print local_target['id'], local_target['number'] #target.activate(local_driver, local_target, local_lea) approval.approve(local_driver, local_target, local_rmc, "activation")
def test(self): print "" local_driver = self.driver local_target = conf.get_target_detail(target_type, lea_type) local_lea = lea_type local_rmc = conf.RMC local_status = conf.STATUS['act'] # Activation request by LEA target.modify(local_driver, local_target, local_lea) # Approving from RMC approval.approve(local_driver, local_target, local_rmc, "modification") # Verify the status of target final_status = status.verify(local_driver, local_target, local_lea, local_status) self.assertTrue(final_status == local_status, local_target['id'] + " not modified and its status is " + final_status)
def test(self): local_target = conf.get_target_detail(target_type, lea_type) local_lea = lea_type local_rmc = conf.RMC local_status = conf.STATUS['deact']