Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The python file defines all the test cases for the test. In the PingallExample and every other test in TestON, a utility class is called to assert each cases by the end of the case. Although not required, It is a good practice to follow a coding style in to your test scripts to improved readability of your code. Check out our built in code checker using pep8 coding style at /TestON/bin/codecheck. All of the TestON test follow the pep8 coding style.

Logs and report files

Three ways to specify the log directory path:

  1. Default path will be the /logs/test_name_time/
  2. Providing the command line option --logdir "/path/to/logdirectory"
  3. Parameterise in the test_name.params file as 'logdir' = '/path/to/logdirectory'

After execution of the test, there will be three types of logs:

  1. test_name_time.log - Detailed verbose log of everythin that the script does.
  2. test_name_time.rpt - Summary report of test case results.
  3. component_name.SESSION - Log of all commands/APIs run on this component with response.