Browse Source

main programs commentar

master
Ulrich Carmesin 2 years ago
parent
commit
10ba241ddd
  1. 8
      collect_testcase.py
  2. 7
      compare_testcase.py
  3. 8
      declare_result.py
  4. 10
      execute_testcase.py
  5. 1
      generate_testcases.py
  6. 7
      start_dialog.py
  7. 7
      test_executer.py

8
collect_testcase.py

@ -1,4 +1,10 @@
# This is a sample Python script. #!/usr/bin/python
# program to collect results from the system
# PARAM: --environment --application --tcdir [ testcase, tctime ]
# main functions
# + collect_testcase() : system --> data --> archiv.result
# + post_testcase() : comp-config --> system
# ---------------------------------------------------
import sys# import sys#
# import jsonpickle # pip install jsonpickle # import jsonpickle # pip install jsonpickle
import yaml # pip install pyyaml import yaml # pip install pyyaml

7
compare_testcase.py

@ -1,4 +1,9 @@
# This is a sample Python script. #!/usr/bin/python
# program to compare the results of a testcase
# PARAM: --environment --application --tcdir [ testcase, tctime ]
# main functions
# + compare_testcase() : archiv.result --> data --> archiv.matchresult
# ---------------------------------------------------
import sys# import sys#
import os import os
import basic.program as program import basic.program as program

8
declare_result.py

@ -1,4 +1,10 @@
# This is a sample Python script. #!/usr/bin/python
# program to declare new exceptions from actual results
# PARAM from INPUT: --testcase/testsuite
# main functions
# + input_param() : cache-actjob --> user-input --> local-param
# + start_job() : local-param --> cache-actjob --> start-param
# ---------------------------------------------------
import sys# import sys#
# import jsonpickle # pip install jsonpickle # import jsonpickle # pip install jsonpickle
import yaml # pip install pyyaml import yaml # pip install pyyaml

10
execute_testcase.py

@ -1,5 +1,11 @@
# This is a sample Python script. #!/usr/bin/python
import sys# # program to execute steps of a testcase
# PARAM: --environment --application --tcdir [ testcase, tctime ]
# main functions
# + craete_request() : testspec --> tdata.step --> archiv.request
# + send_request() : archiv.request -- comp-config --> system.interface
# ---------------------------------------------------
import sys
import os import os
import basic.step import basic.step
import basic.program as program import basic.program as program

1
generate_testcases.py

@ -1,3 +1,4 @@
# https://ucarmesin.de/index.php/it/testautomatisierung-fuer-daten-test/232-testfallgenerierung
import random import random
#from flask import #from flask import
# #

7
start_dialog.py

@ -1,3 +1,10 @@
#!/usr/bin/python
# program to execute programs for a testcases or for a testsuite
# PARAM from INPUT: --granularity --application --environment --testcase/testsuite
# main functions
# + input_param() : cache-actjob --> user-input --> local-param
# + start_job() : local-param --> cache-actjob --> start-param
# ---------------------------------------------------
""" """

7
test_executer.py

@ -1,3 +1,10 @@
#!/usr/bin/python
# program to execute automatically programs for a testsuite
# PARAM: --environment --application --tsdir [ testsuite, tstime ] --step
# main functions
# + execute_step() : testspec --> tdata.steps --> call( init_testsuite/testcase(),
# execute_testcase/testsuite(), collect_testcase/testsuite(), compare_testcase(), finish_testsuite() )
# ---------------------------------------------------
from datetime import datetime from datetime import datetime
import traceback import traceback
import basic.program import basic.program

Loading…
Cancel
Save