This repository was archived by the owner on Mar 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Example
Tao Sauvage edited this page Jan 30, 2015
·
2 revisions
The owtf_testing framework does not remove the output generated by OWTF itself. That decision has been made in order to make it easier for the user to spot any possible problem. It is still possible to remove the output using a bash redirection though.
$ python2 ./owtf_testing/runner.py -s fast > /dev/null
test_cli_empty_run (owtf_testing.tests_functional.cli.test_empty_run.OWTFCliEmptyRunTest)
Run OWTF without parameters. ... ok
test_cli_no_webui (owtf_testing.tests_functional.cli.test_nowebui.OWTFCliNoWebUITest)
Run OWTF without its Web UI. ... ok
test_cli_no_simualtion (owtf_testing.tests_functional.cli.test_simulation.OWTFCliSimulationTest)
Run OWTF not in simulation mode. ... ok
test_cli_simulation (owtf_testing.tests_functional.cli.test_simulation.OWTFCliSimulationTest)
Run OWTF in simulation mode. ... ok
test_only_one_plugin (owtf_testing.tests_functional.cli.test_only.OWTFCliOnlyPluginsTest)
Run OWTF with only one plugin. ... ok
test_only_one_plugin_one_type (owtf_testing.tests_functional.cli.test_only.OWTFCliOnlyPluginsTest)
Run OWTF with only one external plugin (regression #376). ... ok
----------------------------------------------------------------------
Ran 6 tests in 26.567s
OKThe output is composed of different blocks where each of them represent the state of a test case:
- Name of the test method as well as its file path.
- An explicit sentence describing in a couple of words what is the purpose of the test.
- The status of the test:
-
OKif the test succeeded -
FAILif the test has fail (due to unsatisfied assertions) -
ERRORif the test has encountered runtime error (usually followed by a python traceback)
-
$ python2 ./owtf_testing/runner.py -s fast
test_cli_empty_run (owtf_testing.tests_functional.cli.test_empty_run.OWTFCliEmptyRunTest)
Run OWTF without parameters. ... with the following options: ['owtf.py', '--nowebui']
_____ _ _ _ _____ _____
| | | | |_ _| __|
| | | | | | | | | __|
|_____|_____| |_| |__|
@owtfp
http://owtf.org
[*] OWTF Version: 1.0.1, Release: LionHeart (Beta)
[-] Loading framework please wait..
[*] 127.0.0.1:8008 <-- HTTP(S) Proxy to which requests can be directed
[-] All jobs have been done. Exiting.
[-] Stopping inbound proxy processes and cleaning up. Please wait!
ok
test_cli_no_webui (owtf_testing.tests_functional.cli.test_nowebui.OWTFCliNoWebUITest)
Run OWTF without its Web UI. ... with the following options: ['owtf.py', '--nowebui']
_____ _ _ _ _____ _____
| | | | |_ _| __|
| | | | | | | | | __|
|_____|_____| |_| |__|
@owtfp
http://owtf.org
[-] Loading Configuration from: /home/depierre/git-repo/owcs/owtf/profiles/general/default.cfg ..
[-] Loading Resources from: /home/depierre/git-repo/owcs/owtf/profiles/resources/default.cfg ..
[*] OWTF Version: 1.0.1, Release: LionHeart (Beta)
[-] Loading framework please wait..
[*] 127.0.0.1:8008 <-- HTTP(S) Proxy to which requests can be directed
[-] All jobs have been done. Exiting.
[-] Stopping inbound proxy processes and cleaning up. Please wait!
ok
test_cli_no_simualtion (owtf_testing.tests_functional.cli.test_simulation.OWTFCliSimulationTest)
Run OWTF not in simulation mode. ... with the following options: ['owtf.py', '--nowebui']
_____ _ _ _ _____ _____
| | | | |_ _| __|
| | | | | | | | | __|
|_____|_____| |_| |__|
@owtfp
http://owtf.org
[-] Loading Configuration from: /home/depierre/git-repo/owcs/owtf/profiles/general/default.cfg ..
[-] Loading Resources from: /home/depierre/git-repo/owcs/owtf/profiles/resources/default.cfg ..
[*] OWTF Version: 1.0.1, Release: LionHeart (Beta)
[-] Loading framework please wait..
[*] 127.0.0.1:8008 <-- HTTP(S) Proxy to which requests can be directed
[-] All jobs have been done. Exiting.
[-] Stopping inbound proxy processes and cleaning up. Please wait!
ok
test_cli_simulation (owtf_testing.tests_functional.cli.test_simulation.OWTFCliSimulationTest)
Run OWTF in simulation mode. ... with the following options: ['owtf.py', '--nowebui', '-s']
_____ _ _ _ _____ _____
| | | | |_ _| __|
| | | | | | | | | __|
|_____|_____| |_| |__|
@owtfp
http://owtf.org
[-] Loading Configuration from: /home/depierre/git-repo/owcs/owtf/profiles/general/default.cfg ..
[-] Loading Resources from: /home/depierre/git-repo/owcs/owtf/profiles/resources/default.cfg ..
[*] OWTF Version: 1.0.1, Release: LionHeart (Beta)
[-] Loading framework please wait..
[*] 127.0.0.1:8008 <-- HTTP(S) Proxy to which requests can be directed
[-] All jobs have been done. Exiting.
[-] Stopping inbound proxy processes and cleaning up. Please wait!
ok
test_only_one_plugin (owtf_testing.tests_functional.cli.test_only.OWTFCliOnlyPluginsTest)
Run OWTF with only one plugin. ... with the following options: ['owtf.py', '--nowebui', '-s', '-o', 'OWTF-WVS-001', 'http://127.0.0.1:8888']
_____ _ _ _ _____ _____
| | | | |_ _| __|
| | | | | | | | | __|
|_____|_____| |_| |__|
@owtfp
http://owtf.org
[-] Loading Configuration from: /home/depierre/git-repo/owcs/owtf/profiles/general/default.cfg ..
[-] Loading Resources from: /home/depierre/git-repo/owcs/owtf/profiles/resources/default.cfg ..
[-] Defaulting Plugin Group to 'web' based on list of plugins supplied
[*] OWTF Version: 1.0.1, Release: LionHeart (Beta)
[-] Loading framework please wait..
[-] The IP address for 127.0.0.1 is: '127.0.0.1'
[*] 127.0.0.1:8008 <-- HTTP(S) Proxy to which requests can be directed
[-] Work assigned to Worker-34 with pid 11498
[-] __________ 1 - Target: http://127.0.0.1:8888 -> Plugin: Arachni Unauthenticated (web/active) __________
[-] Work assigned to Worker-34 with pid 11498
[-] __________ 2 - Target: http://127.0.0.1:8888 -> Plugin: Arachni Unauthenticated (web/external) __________
[-] All jobs have been done. Exiting.
[-] Stopping inbound proxy processes and cleaning up. Please wait!
ok
test_only_one_plugin_one_type (owtf_testing.tests_functional.cli.test_only.OWTFCliOnlyPluginsTest)
Run OWTF with only one external plugin (regression #376). ... with the following options: ['owtf.py', '--nowebui', '-s', '-o', 'OWTF-WVS-001', '-t', 'external', 'http://127.0.0.1:8888']
_____ _ _ _ _____ _____
| | | | |_ _| __|
| | | | | | | | | __|
|_____|_____| |_| |__|
@owtfp
http://owtf.org
[-] Loading Configuration from: /home/depierre/git-repo/owcs/owtf/profiles/general/default.cfg ..
[-] Loading Resources from: /home/depierre/git-repo/owcs/owtf/profiles/resources/default.cfg ..
[-] Defaulting Plugin Group to 'web' based on list of plugins supplied
[*] OWTF Version: 1.0.1, Release: LionHeart (Beta)
[-] Loading framework please wait..
[-] The IP address for 127.0.0.1 is: '127.0.0.1'
[*] 127.0.0.1:8008 <-- HTTP(S) Proxy to which requests can be directed
[-] Work assigned to Worker-44 with pid 11676
[-] __________ 1 - Target: http://127.0.0.1:8888 -> Plugin: Arachni Unauthenticated (web/external) __________
[-] All jobs have been done. Exiting.
[-] Stopping inbound proxy processes and cleaning up. Please wait!
ok
----------------------------------------------------------------------
Ran 6 tests in 28.747s
OKThe main difference here is that OWTF's output is available for each test case. Also the exact parameters fed to OWTF are shown.