Skip to content

Commit

Permalink
added logresponseasfile self test
Browse files Browse the repository at this point in the history
  • Loading branch information
Qarj committed Jan 10, 2016
1 parent 8b52848 commit 870b2a9
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
8 changes: 8 additions & 0 deletions selftest/all.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,12 @@ Run all self tests
verifypositive="Test Cases Failed: 0"
/>

<case
id="180"
description1="logresponseasfile"
method="cmd"
command="webinject.pl -o selftest\output\logresponseasfile selftest\logresponseasfile.xml"
verifypositive="Test Cases Failed: 0"
/>

</testcases>
42 changes: 42 additions & 0 deletions selftest/logresponseasfile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<testcases repeat="1">

<!--
Self test master file. All test steps in this file should pass.
-->

<testvar varname="feature">logresponseasfile</testvar>
<case
id="10"
description1="${feature} - filename prefix included as part of output path"
method="cmd"
command="webinject.pl -o selftest\output\${feature}sub selftest\substeps\${feature}.xml"
/>

<case
id="20"
description1="view RIMATTEST_Home_Page.html"
method="cmd"
command1="type selftest\output\RIMATTEST_Home_Page.html"
verifypositive="RimAttest is a web site for automated testing examples"
verifypositive1="html.*head.*body"
/>

<case
id="30"
description1="${feature} - filename prefix not included as part of output path"
method="cmd"
command="if not exist selftest\output\temp mkdir selftest\output\temp"
command1="webinject.pl -o selftest\output\temp\ selftest\substeps\${feature}.xml"
/>

<case
id="40"
description1="view RIMATTEST_Home_Page.html"
method="cmd"
command1="type selftest\output\temp\RIMATTEST_Home_Page.html"
verifypositive="RimAttest is a web site for automated testing examples"
verifypositive1="html.*head.*body"
/>


</testcases>
16 changes: 16 additions & 0 deletions selftest/substeps/logresponseasfile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<testcases repeat="1">

<!--
Self test sub step file. Some test steps may fail.
Expected failures will be asserted by the master test file.
-->

<case
id="10"
description1="logresponse as file"
method="get"
url="http://{RAN}"
logresponseasfile="RIMATTEST_Home_Page.html"
/>

</testcases>

0 comments on commit 870b2a9

Please sign in to comment.