ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

Tester.getTestUser(properties={}, fail_missing_params=True)

Basd on the command line args and given properties get a <no title>

Paramters:

  • properties: either an array of key=val strings or a dict of those pairs

  • fail_missing_params: a bool whether or not to exit if required params are not in the command options

  • skip_args: do not process command line arguments, something else will

Tester.get_test_user(properties={}, fail_missing_params=True, skip_args=False)

Basd on the command line args and given properties get a <no title>

Paramters:

  • properties: either an array of key=val strings or a dict of those pairs

  • fail_missing_params: a bool whether or not to exit if required params are not in the command options

  • skip_args: do not process command line arguments, something else will

Tester.parse_args(fail_missing=True)

Parse the command line args

Tester.run_unittest(user, steps)

Run the unittest and track success/failure of each step, stopping when necessary

  • user: the <no title> object to perform the test with

  • steps: a list of tuples of the tests as follows:

    ( description, function, args, expected_result, break_on_fail )