manual_run_API_EarthSquad.py 606 B

123456789101112131415161718
  1. from baangtVIG.CustTestRun import TestRun
  2. from baangt.base import GlobalConstants as GC
  3. from baangt.TestSteps.DropsApp.Login_API import Login_API
  4. if __name__ == '__main__':
  5. #l_testRun = TestRun("WSTV-Single")
  6. l_testRun = TestRun("API-DROPS")
  7. ApiInterface = l_testRun.getAPI()
  8. (l_record, l_count) = l_testRun.getNextRecord()
  9. while l_record:
  10. kwargs = {GC.KWARGS_DATA: l_record,
  11. GC.KWARGS_API_SESSION: ApiInterface}
  12. Login_API(**kwargs)
  13. l_testRun.finishTestCase()
  14. (l_record, l_count) = l_testRun.getNextRecord()
  15. l_testRun.tearDown()