SimpliTest 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -21
  3. data/SimpliTest.gemspec +42 -42
  4. data/bin/SimpliTest +22 -22
  5. data/lib/SimpliTest.rb +2 -2
  6. data/lib/SimpliTest/cli/main.rb +333 -333
  7. data/lib/SimpliTest/config/configuration.rb +107 -107
  8. data/lib/SimpliTest/config/directory_paths.rb +36 -36
  9. data/lib/SimpliTest/config/environment.rb +67 -67
  10. data/lib/SimpliTest/config/local_environment.rb +20 -20
  11. data/lib/SimpliTest/config/profiles/chrome.rb +18 -18
  12. data/lib/SimpliTest/config/profiles/firefox.rb +14 -14
  13. data/lib/SimpliTest/config/profiles/internet_explorer.rb +11 -11
  14. data/lib/SimpliTest/config/profiles/phantom.rb +9 -9
  15. data/lib/SimpliTest/config/profiles/phantom_debug.rb +12 -12
  16. data/lib/SimpliTest/config/profiles/selenium.rb +13 -13
  17. data/lib/SimpliTest/config/screen_size.rb +25 -25
  18. data/lib/SimpliTest/config/steps.rb +8 -8
  19. data/lib/SimpliTest/helpers/data_validation.rb +60 -60
  20. data/lib/SimpliTest/helpers/file.rb +38 -38
  21. data/lib/SimpliTest/helpers/project_setup.rb +186 -186
  22. data/lib/SimpliTest/helpers/step_helpers/custom_chrome_helpers.rb +14 -14
  23. data/lib/SimpliTest/helpers/step_helpers/custom_date_helpers.rb +64 -64
  24. data/lib/SimpliTest/helpers/step_helpers/custom_form_helpers.rb +66 -66
  25. data/lib/SimpliTest/helpers/step_helpers/custom_phantomjs_helpers.rb +49 -49
  26. data/lib/SimpliTest/helpers/step_helpers/custom_selenium_helpers.rb +41 -41
  27. data/lib/SimpliTest/helpers/step_helpers/html_selectors_helpers.rb +154 -154
  28. data/lib/SimpliTest/helpers/step_helpers/navigation_helpers.rb +206 -206
  29. data/lib/SimpliTest/helpers/step_helpers/tolerance_for_sync_issues.rb +38 -38
  30. data/lib/SimpliTest/helpers/step_helpers/within_helpers.rb +6 -6
  31. data/lib/SimpliTest/helpers/windows_ui.rb +51 -51
  32. data/lib/SimpliTest/steps/debugging_steps.rb +19 -19
  33. data/lib/SimpliTest/steps/form_steps.rb +348 -352
  34. data/lib/SimpliTest/steps/form_verification_steps.rb +189 -189
  35. data/lib/SimpliTest/steps/navigation_steps.rb +58 -47
  36. data/lib/SimpliTest/steps/scoper.rb +42 -42
  37. data/lib/SimpliTest/steps/verification_steps.rb +306 -306
  38. data/lib/SimpliTest/tasks/document.rb +169 -169
  39. data/lib/SimpliTest/tasks/examples.rb +18 -18
  40. data/lib/SimpliTest/tasks/testinstall.rb +5 -5
  41. data/lib/SimpliTest/templates/NewSimpliTestProject/Readme.txt +4 -4
  42. data/lib/SimpliTest/templates/NewSimpliTestProject/cucumber.yml +26 -26
  43. data/lib/SimpliTest/templates/NewSimpliTestProject/documentation/step_definitions.html +88 -87
  44. data/lib/SimpliTest/templates/NewSimpliTestProject/features/specifications/RegressionTests/HelloWorld.feature +3 -3
  45. data/lib/SimpliTest/templates/NewSimpliTestProject/features/specifications/SmokeTest/HelloWorld.feature +3 -3
  46. data/lib/SimpliTest/templates/NewSimpliTestProject/features/specifications/accessibilityTests/HelloWorld.feature +3 -3
  47. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/environments.yml +10 -10
  48. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/pages.yml +26 -26
  49. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/selectors.yml +44 -44
  50. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/settings.yml +26 -26
  51. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/env.rb +33 -33
  52. data/lib/SimpliTest/templates/NewSimpliTestProject/license.txt +29 -29
  53. data/lib/SimpliTest/templates/document/css/style.css +28 -28
  54. data/lib/SimpliTest/templates/document/index.html +60 -60
  55. data/lib/version.rb +3 -3
  56. metadata +4 -4
@@ -1,87 +1,88 @@
1
- <html>
2
-
3
- <head>
4
- <meta charset='UTF-8'>
5
-
6
- <title>SimpliTest Steps</title>
7
-
8
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
- <script type="text/javascript" charset="utf8" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
10
- <script type="text/javascript" charset="utf8" src="http://cdnjs.cloudflare.com/ajax/libs/datatables/1.9.4/jquery.dataTables.min.js"></script>
11
- <link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
12
- <script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
13
- <script>
14
- $(document).ready( function () {
15
- $('.dataTable').dataTable( {
16
- "bPaginate": false
17
- } );
18
- } );
19
- </script>
20
- <style>* {
21
- margin: 0;
22
- padding: 0;
23
- }
24
- body {
25
- font: 14px/1.4 Georgia, Serif;
26
- }
27
- p {
28
- margin: 20px 0;
29
- }
30
-
31
- /*
32
- Generic Styling, for Desktops/Laptops
33
- */
34
- table {
35
- width: 100%;
36
- border-collapse: collapse;
37
- }
38
- th {
39
- background: #333;
40
- color: white;
41
- font-weight: bold;
42
- }
43
- td, th {
44
- padding: 6px;
45
- border: 1px solid #ccc;
46
- text-align: left;
47
- }
48
- </style>
49
- </head>
50
-
51
- <div class="container">
52
- <div class="row clearfix">
53
- <div class="col-md-12 column">
54
- <div class="row clearfix">
55
- <div class="col-md-12 column">
56
- <div class="page-header">
57
- <h1>
58
- SimpliTest <span>Available Steps</span>
59
- </h1>
60
- </div>
61
- </div>
62
- </div>
63
- <div class="row clearfix">
64
- <div class="col-md-8 column">
65
- <p>
66
- Version: 0.0.1 of SimpliTest adds the following steps to the framework.
67
- </p>
68
- </div>
69
- <div class="col-md-4 column">
70
- </div>
71
- </div>
72
- <table class="dataTable table table-striped table-bordered">
73
- <thead>
74
- <tr>
75
- <tr><th>category</th><th>step</th><th>example</th><th>arguments</th></tr>
76
- </tr>
77
- </thead>
78
- <tbody>
79
- <tr><td>debugging </td><td>^show me the page$</td><td> Then show me the page</td><td>N/A</td></tr><tr><td>debugging </td><td>^I wait (\d+) second(?:|s)$</td><td> And I wait 10 seconds</td><td>seconds</td></tr><tr><td>debugging </td><td>^I take a screenshot$</td><td> And I take a screenshot</td><td>N/A</td></tr><tr><td>form </td><td>^(?:|I )fill in the following:$</td><td> When I fill in the following:</td><td>fields</td></tr><tr><td>form </td><td>^(?:|I )attach the file "([^"]*)" to "([^"]*)"$</td><td> When I attach the file "sample.txt" to "field_name"</td><td>file, field</td></tr><tr><td>form </td><td>^(?:|I )fill in "([^"]*)" with "([^"]*)"$</td><td> When I fill in "Name" with "my name"</td><td>field, value</td></tr><tr><td>form </td><td>^(?:|I )fill in "([^"]*)" with:$</td><td> See Gist</td><td>field, value</td></tr><tr><td>form </td><td>^I enter "(.*?)" in the "(.*?)" field$</td><td> And I enter "I made this" in the "Describe yourself" field</td><td>value, field</td></tr><tr><td>form </td><td>^I key in the date "(.*?)" in the "(.*?)" field$</td><td> Then I key in the date "12/01/2013" in the "Date" field</td><td>date_rule, field</td></tr><tr><td>form </td><td>^I key in "(.*?)" in the "(.*)" field$</td><td> When I key in "22031" in the "Location" field</td><td>text, field</td></tr><tr><td>form </td><td>^(?:|I )select "([^"]*)" from "([^"]*)"$</td><td> When I select "Male" from "Sex"</td><td>value, select_field_name_id_or_text</td></tr><tr><td>form </td><td>^(?:|I )check "([^"]*)"$</td><td> And I check "Accept user agrement"</td><td>field</td></tr><tr><td>form </td><td>^(?:|I )uncheck "([^"]*)"$</td><td> When I uncheck "Send me letters"</td><td>field</td></tr><tr><td>form </td><td>^(?:I|i) select following values from "([^"]*)":$</td><td> When I select following values from "Filters": Accepts Gherkin Table</td><td>field, values</td></tr><tr><td>form </td><td>^(?:I|i) unselect following values from "([^"]*)":$</td><td> When I unselect following values from "Filters": Accepts Gherkin Table</td><td>field, values</td></tr><tr><td>form </td><td>^(?:|I )choose "([^"]*)"$</td><td> When I choose "radio 1"</td><td>field</td></tr><tr><td>form </td><td>^(?:|I )press "([^"]*)"$</td><td> When I press "Submit"</td><td>button</td></tr><tr><td>form </td><td>^I press the (first|last|[0-9]+(?:th|st|rd|nd)) instance of "(.*?)"$</td><td> When I press the 4th instance of "nextButton"</td><td>index,link</td></tr><tr><td>form </td><td>^I click the (first|last|next|previous) page button$</td><td> When I click the next page button</td><td>index</td></tr><tr><td>form </td><td>^I click the "(.*?)" (?:button|link)$</td><td> When I click the "Submit" button</td><td>button_or_link</td></tr><tr><td>form </td><td>^I go to page (\d+)$</td><td> When I go to page 1</td><td>page_number</td></tr><tr><td>form </td><td>^I move focus away from "(.*)"$</td><td> Not implemented yet</td><td>locator</td></tr><tr><td>form </td><td>^I press keydown on "(.*)"$</td><td> When I press keydown on "LocationCSSSelector"</td><td>locator</td></tr><tr><td>form </td><td>^I hover over "(.*?)"$</td><td> And I hover over "BidPlansMenu"</td><td>locator</td></tr><tr><td>form </td><td>^I accept the confirmation dialog box$</td><td> And I accept the confirmation dialog</td><td>N/A</td></tr><tr><td>form </td><td>^(?:|I )[Ss]witch to the iframe$</td><td> And I switch to the iframe</td><td>N/A</td></tr><tr><td>form </td><td>^I attach file "([^"]*)" to "([^"]*)"$</td><td> Then I attach file "testAttachment.txt" to "File"</td><td>file, field</td></tr><tr><td>form </td><td>^(?:|I )[Ee]nter today's date in the "([^"]*)" field$</td><td> Then I enter today's date in the "date" field"</td><td>locator</td></tr><tr><td>form </td><td>^I verify "([^"]*)" field has today's date$</td><td> Then I verify "date" field has today's date</td><td>locator</td></tr><tr><td>form </td><td>^I right-click on "(.*?)" and then click the "(.*?)" option$</td><td> When I right-click "some element" and then click "Some Link" option</td><td> locator, link</td></tr><tr><td>form </td><td>^I click the "(.*?)" tab$</td><td> When I click the "Submit" tab</td><td>button_or_link</td></tr><tr><td>form verification </td><td>^the "([^"]*)" field(?: within (.*))? should contain "([^"]*)"$</td><td> Then the "Name" field should contain "my name"</td><td>field, parent, value</td></tr><tr><td>form verification </td><td>^the "([^"]*)" field(?: within (.*))? should not contain "([^"]*)"$</td><td> And the "Name" field should not contain "not my name" </td><td>field, parent, value</td></tr><tr><td>form verification </td><td>^the select "([^"]*)" should have following options:$</td><td> Then the select "Your favorite colors": Table</td><td>field, options</td></tr><tr><td>form verification </td><td>^the following values should be selected in "([^"]*)":$</td><td> And the following values should be selected in "Your favorite colors": Table </td><td>select_box, values</td></tr><tr><td>form verification </td><td>^the following values should not be selected in "([^"]*)":$</td><td> And the following values should not be selected in "Your favorite colors":</td><td>select_box, values</td></tr><tr><td>form verification </td><td>^the "([^"]*)" checkbox(?: within (.*))? should be checked$</td><td> And the "Accept user agrement" checkbox should be checked</td><td>label, parent</td></tr><tr><td>form verification </td><td>^the "([^"]*)" checkbox(?: within (.*))? should not be checked$</td><td> And the "Do not touch me" checkbox should not be checked</td><td>label, parent</td></tr><tr><td>form verification </td><td>^the "(.*?)" selectbox should contain:$</td><td> And the "Sex" selectbox should contain: Table</td><td>locator, options</td></tr><tr><td>form verification </td><td>^the "(.*?)" radio should be selected$</td><td> And the "radio 1" radio should be selected</td><td>locator</td></tr><tr><td>form verification </td><td>^the "(.*?)" radio should not be selected$</td><td> And the "radio 2" radio should not be selected</td><td>locator</td></tr><tr><td>form verification </td><td>^"(.*?)" should be the default date for "(.*?)"$</td><td> Then "12/31/2013" should be the default date for "datepicker"</td><td>date_rule, field</td></tr><tr><td>form verification </td><td>^I enter user name from excel in "(.*?)"$</td><td> Then I enter user name from excel in "Username" </td><td>locator</td></tr><tr><td>form verification </td><td>^I enter password from excel in "([^"]*)" field$</td><td> Then I enter user name from excel in "Username" </td><td>locator</td></tr><tr><td>form verification </td><td>[Rr]ead file "(.*?)"$</td><td>N/A</td><td>filepath</td></tr><tr><td>navigation </td><td>^(?:|I )am on the "(.*)" (?:page|Page)$</td><td> Given I am on the "home" page</td><td>page_name</td></tr><tr><td>navigation </td><td>^(?:|I )go to the "(.*)" page$</td><td> When I go to the "other" page</td><td>page_name</td></tr><tr><td>navigation </td><td>^(?:|I )follow "([^"]*)"$</td><td> When I follow "Privacy Policy"</td><td>link</td></tr><tr><td>navigation </td><td>^(?:|I )maximize the window$</td><td> When I maximize the window</td><td>N/A</td></tr><tr><td>navigation </td><td>^(?:|I )switch to the (.*) window$</td><td> And I switch to the last window</td><td>first_or_last</td></tr><tr><td>navigation </td><td>^(?:|I )[Ss]witch to the frame$</td><td> And I switch to the frame</td><td>N/A</td></tr><tr><td>navigation </td><td>^(?:|I )[Aa]ccept (?:|the )popup(?:| window)$</td><td> Then I Accept the popup window</td><td>N/A</td></tr><tr><td>navigation </td><td>^(?:|I )[Dd]ismiss (?:|the )popup(?:| window)$</td><td> Then I Dismiss the popup window</td><td>N/A</td></tr><tr><td>scoper</td><td>^(.*) within(?: the| an?)? (.*)$</td><td>N/A</td><td>step_def, parent</td></tr><tr><td>scoper</td><td>^(.*) within(?: the| an?)? (.*):$</td><td>N/A</td><td>step_def, parent, table_or_string</td></tr><tr><td>scoper</td><td>^(.*) in the new window$</td><td>N/A</td><td>step_def</td></tr><tr><td>verification </td><td>^I should be redirected to the "(.*)" page$</td><td> Then I should be redirected to the "congratulations" page</td><td>page_name</td></tr><tr><td>verification </td><td>^I should be redirected to the "(.*?)" page with some parameters$</td><td> Then I should be redirected to the "Results" page with some parameters</td><td>page_name</td></tr><tr><td>verification </td><td>^(?:|I )should be on the "(.*)" page$</td><td> Then I should be on the "congratulations" page</td><td>page_name</td></tr><tr><td>verification </td><td>^(?:|I )should see "(.*)"$</td><td> And I should see "Great, you can click links!"</td><td>text</td></tr><tr><td>verification </td><td>^(?:|I )should not see "(.*)"$</td><td> And I should not see "some bla-bla"</td><td>text</td></tr><tr><td>verification </td><td>^(?:|I )should see \/([^\/]*)\/([imxo])?$</td><td> Then I should see /great/i</td><td>regexp,flags</td></tr><tr><td>verification </td><td>^(?:|I )should not see \/([^\/]*)\/([imxo])?$</td><td> Then I should not see /bla-bla/i</td><td>regexp,flags</td></tr><tr><td>verification </td><td>^I should see all of the texts:?$</td><td> Then I should see all of the texts: <pass a table with text values></td><td>table</td></tr><tr><td>verification </td><td>^I should see the "(.*?)" text as "(.*)"$</td><td> Not yet implemented</td><td>locator, text</td></tr><tr><td>verification </td><td>^(?: |I )should see the "(.*)"(?: button| link)$</td><td> Then I should see the "Submit" button</td><td>link_or_button_text</td></tr><tr><td>verification </td><td>^(?: |I )should not see the "(.*)"(?: button| link)$</td><td> And I should not see the "Click Me" link</td><td>button_or_link_text</td></tr><tr><td>verification </td><td>^I should see an? link that points to "([^"]*)"$</td><td> Then I should see a link that points to "http://www.google.com/"</td><td>href_destination</td></tr><tr><td>verification </td><td>^the (first|last|[0-9]+(?:th|st|rd|nd)) instance of "(.*?)" should be disabled$</td><td> Then the 5th instance of "Page1PaginationLinks" should be disabled</td><td>index, button_or_link</td></tr><tr><td>verification </td><td>^I should see that all asset references on the page are valid$</td><td> Then I should see that all asset references on the page are valid</td><td>N/A</td></tr><tr><td>verification </td><td>^I should see that all links on the page are valid$</td><td> And I should see that all links on the page are valid</td><td>N/A</td></tr><tr><td>verification </td><td>^I should be on page (\d+)$</td><td> Then I should be on page 2</td><td>page_number</td></tr><tr><td>verification </td><td>^I should see the following(?: errors| list):$</td><td> Not yet implemented</td><td>table</td></tr><tr><td>verification </td><td>^I should see an? "([^"]*)" tag around the text "([^"]*)"$</td><td> Then I should see a "td" tag around "bla"</td><td>tag_name, text</td></tr><tr><td>verification </td><td>^I should see an? "([^"]*)" with "([^"]*)" of "([^"]*)"$</td><td> Then I should see a "div" with "id" of "ui-datepicker-div"</td><td>tag_name, attribute_name, attribute_value</td></tr><tr><td>verification </td><td>^I should see the image "([^"]*)"$</td><td> Then I should see the image "Image1.jpg"</td><td>image_name</td></tr><tr><td>verification </td><td>^I should see all of the images:?$</td><td> Then I should see all of the images: <accepts a list of image names(src)></td><td>table</td></tr><tr><td>verification </td><td>^(?:|I )should see text "(.*)" as alt text for (.*)$</td><td> Then I should see text "some alt text" as alt text for ImageSelector</td><td>alt_text, locator</td></tr><tr><td>verification </td><td>^I should see the HTML5 audio source "([^"]*)"$</td><td> Then I should see the HTML5 audio source "Audio.mp3"</td><td>audio_name</td></tr><tr><td>verification </td><td>^I should see all of the HTML5 audio sources:?$</td><td> Then I should see the HTML5 audio sources: <Accepts a list of audio file names></td><td>table</td></tr><tr><td>verification </td><td>^I should see the HTML5 video source "([^"]*)"$</td><td> Then I should see the HTML5 video source "video1.mp4"</td><td>video_name</td></tr><tr><td>verification </td><td>^I should see all of the HTML5 video sources:$</td><td> Then I should see the HTML5 video sources: <accepts a table of video sources></td><td>table</td></tr><tr><td>verification </td><td>^I should see (\d+) elements? kind of (.+)$</td><td> Then I should see 2 elements kind of table's header</td><td>count, locator</td></tr><tr><td>verification </td><td>^I should not see elements? kind of (.+)$</td><td> And I should not see elements kind of paragraphs</td><td>locator</td></tr><tr><td>verification </td><td>^I should see "(.*?)" as "(.*?)" value$</td><td> Not Implemented yet</td><td>arg1, arg2</td></tr><tr><td>verification </td><td>^I should see the correct "(.*)"$</td><td> Then I should see the correct "MedicareGovHeader"</td><td>section</td></tr>
80
- </tbody>
81
- </table>
82
- </div>
83
- </div>
84
- </div>
85
- </body>
86
-
87
- </html>
1
+ C:/SimpliTest1/FromOpenSourceGit/SimpliTest/<!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset='UTF-8'>
6
+
7
+ <title>SimpliTest Steps</title>
8
+
9
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
+ <script type="text/javascript" charset="utf8" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
11
+ <script type="text/javascript" charset="utf8" src="http://cdnjs.cloudflare.com/ajax/libs/datatables/1.9.4/jquery.dataTables.min.js"></script>
12
+ <link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
13
+ <script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
14
+ <script>
15
+ $(document).ready( function () {
16
+ $('.dataTable').dataTable( {
17
+ "bPaginate": false
18
+ } );
19
+ } );
20
+ </script>
21
+ <style>* {
22
+ margin: 0;
23
+ padding: 0;
24
+ }
25
+ body {
26
+ font: 14px/1.4 Georgia, Serif;
27
+ }
28
+ p {
29
+ margin: 20px 0;
30
+ }
31
+
32
+ /*
33
+ Generic Styling, for Desktops/Laptops
34
+ */
35
+ table {
36
+ width: 100%;
37
+ border-collapse: collapse;
38
+ }
39
+ th {
40
+ background: #333;
41
+ color: white;
42
+ font-weight: bold;
43
+ }
44
+ td, th {
45
+ padding: 6px;
46
+ border: 1px solid #ccc;
47
+ text-align: left;
48
+ }
49
+ </style>
50
+ </head>
51
+
52
+ <div class="container">
53
+ <div class="row clearfix">
54
+ <div class="col-md-12 column">
55
+ <div class="row clearfix">
56
+ <div class="col-md-12 column">
57
+ <div class="page-header">
58
+ <h1>
59
+ SimpliTest <span>Available Steps</span>
60
+ </h1>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ <div class="row clearfix">
65
+ <div class="col-md-8 column">
66
+ <p>
67
+ Version: 0.0.5 of SimpliTest adds the following steps to the framework.
68
+ </p>
69
+ </div>
70
+ <div class="col-md-4 column">
71
+ </div>
72
+ </div>
73
+ <table class="dataTable table table-striped table-bordered">
74
+ <thead>
75
+ <tr>
76
+ <tr><th>category</th><th>step</th><th>example</th><th>arguments</th></tr>
77
+ </tr>
78
+ </thead>
79
+ <tbody>
80
+ <tr><td>debugging </td><td>^show me the page$</td><td> Then show me the page</td><td>N/A</td></tr><tr><td>debugging </td><td>^I wait (\d+) second(?:|s)$</td><td> And I wait 10 seconds</td><td>seconds</td></tr><tr><td>debugging </td><td>^I take a screenshot$</td><td> And I take a screenshot</td><td>N/A</td></tr><tr><td>form </td><td>^(?:|I )fill in the following:$</td><td> When I fill in the following:</td><td>fields</td></tr><tr><td>form </td><td>^(?:|I )attach the file "([^"]*)" to "([^"]*)"$</td><td> When I attach the file "sample.txt" to "field_name"</td><td>file, field</td></tr><tr><td>form </td><td>^(?:|I )fill in "([^"]*)" with "([^"]*)"$</td><td> When I fill in "Name" with "my name"</td><td>field, value</td></tr><tr><td>form </td><td>^(?:|I )fill in "([^"]*)" with:$</td><td> See Gist</td><td>field, value</td></tr><tr><td>form </td><td>^I enter "(.*?)" in the "(.*?)" field$</td><td> And I enter "I made this" in the "Describe yourself" field</td><td>value, field</td></tr><tr><td>form </td><td>^I key in the date "(.*?)" in the "(.*?)" field$</td><td> Then I key in the date "12/01/2013" in the "Date" field</td><td>date_rule, field</td></tr><tr><td>form </td><td>^I key in "(.*?)" in the "(.*)" field$</td><td> When I key in "22031" in the "Location" field</td><td>text, field</td></tr><tr><td>form </td><td>^(?:|I )select "([^"]*)" from "([^"]*)"$</td><td> When I select "Male" from "Sex"</td><td>value, select_field_name_id_or_text</td></tr><tr><td>form </td><td>^(?:|I )check "([^"]*)"$</td><td> And I check "Accept user agrement"</td><td>field</td></tr><tr><td>form </td><td>^(?:|I )uncheck "([^"]*)"$</td><td> When I uncheck "Send me letters"</td><td>field</td></tr><tr><td>form </td><td>^(?:I|i) select following values from "([^"]*)":$</td><td> When I select following values from "Filters": Accepts Gherkin Table</td><td>field, values</td></tr><tr><td>form </td><td>^(?:I|i) unselect following values from "([^"]*)":$</td><td> When I unselect following values from "Filters": Accepts Gherkin Table</td><td>field, values</td></tr><tr><td>form </td><td>^(?:|I )choose "([^"]*)"$</td><td> When I choose "radio 1"</td><td>field</td></tr><tr><td>form </td><td>^(?:|I )press "([^"]*)"$</td><td> When I press "Submit"</td><td>button</td></tr><tr><td>form </td><td>^I press the (first|last|[0-9]+(?:th|st|rd|nd)) instance of "(.*?)"$</td><td> When I press the 4th instance of "nextButton"</td><td>index,link</td></tr><tr><td>form </td><td>^I click the (first|last|next|previous) page button$</td><td> When I click the next page button</td><td>index</td></tr><tr><td>form </td><td>^I click the "(.*?)" (?:button|link)$</td><td> When I click the "Submit" button</td><td>button_or_link</td></tr><tr><td>form </td><td>^I go to page (\d+)$</td><td> When I go to page 1</td><td>page_number</td></tr><tr><td>form </td><td>^I move focus away from "(.*)"$</td><td> Not implemented yet</td><td>locator</td></tr><tr><td>form </td><td>^I press keydown on "(.*)"$</td><td> When I press keydown on "LocationCSSSelector"</td><td>locator</td></tr><tr><td>form </td><td>^I hover over "(.*?)"$</td><td> And I hover over "BidPlansMenu"</td><td>locator</td></tr><tr><td>form </td><td>^I accept the confirmation dialog box$</td><td> And I accept the confirmation dialog</td><td>N/A</td></tr><tr><td>form </td><td>^I attach file "([^"]*)" to "([^"]*)"$</td><td> Then I attach file "testAttachment.txt" to "File"</td><td>file, field</td></tr><tr><td>form </td><td>^(?:|I )[Ee]nter today's date in the "([^"]*)" field$</td><td> Then I enter today's date in the "date" field"</td><td>locator</td></tr><tr><td>form </td><td>^I verify "([^"]*)" field has today's date$</td><td> Then I verify "date" field has today's date</td><td>locator</td></tr><tr><td>form </td><td>^I right-click on "(.*?)" and then click the "(.*?)" option$</td><td> When I right-click "some element" and then click "Some Link" option</td><td> locator, link</td></tr><tr><td>form </td><td>^I click the "(.*?)" tab$</td><td> When I click the "Submit" tab</td><td>button_or_link</td></tr><tr><td>form verification </td><td>^the "([^"]*)" field(?: within (.*))? should contain "([^"]*)"$</td><td> Then the "Name" field should contain "my name"</td><td>field, parent, value</td></tr><tr><td>form verification </td><td>^the "([^"]*)" field(?: within (.*))? should not contain "([^"]*)"$</td><td> And the "Name" field should not contain "not my name" </td><td>field, parent, value</td></tr><tr><td>form verification </td><td>^the select "([^"]*)" should have following options:$</td><td> Then the select "Your favorite colors": Table</td><td>field, options</td></tr><tr><td>form verification </td><td>^the following values should be selected in "([^"]*)":$</td><td> And the following values should be selected in "Your favorite colors": Table </td><td>select_box, values</td></tr><tr><td>form verification </td><td>^the following values should not be selected in "([^"]*)":$</td><td> And the following values should not be selected in "Your favorite colors":</td><td>select_box, values</td></tr><tr><td>form verification </td><td>^the "([^"]*)" checkbox(?: within (.*))? should be checked$</td><td> And the "Accept user agrement" checkbox should be checked</td><td>label, parent</td></tr><tr><td>form verification </td><td>^the "([^"]*)" checkbox(?: within (.*))? should not be checked$</td><td> And the "Do not touch me" checkbox should not be checked</td><td>label, parent</td></tr><tr><td>form verification </td><td>^the "(.*?)" selectbox should contain:$</td><td> And the "Sex" selectbox should contain: Table</td><td>locator, options</td></tr><tr><td>form verification </td><td>^the "(.*?)" radio should be selected$</td><td> And the "radio 1" radio should be selected</td><td>locator</td></tr><tr><td>form verification </td><td>^the "(.*?)" radio should not be selected$</td><td> And the "radio 2" radio should not be selected</td><td>locator</td></tr><tr><td>form verification </td><td>^"(.*?)" should be the default date for "(.*?)"$</td><td> Then "12/31/2013" should be the default date for "datepicker"</td><td>date_rule, field</td></tr><tr><td>form verification </td><td>^I enter user name from excel in "(.*?)"$</td><td> Then I enter user name from excel in "Username" </td><td>locator</td></tr><tr><td>form verification </td><td>^I enter password from excel in "([^"]*)" field$</td><td> Then I enter user name from excel in "Username" </td><td>locator</td></tr><tr><td>form verification </td><td>[Rr]ead file "(.*?)"$</td><td>N/A</td><td>filepath</td></tr><tr><td>navigation </td><td>^(?:|I )am on the "(.*)" (?:page|Page)$</td><td> Given I am on the "home" page</td><td>page_name</td></tr><tr><td>navigation </td><td>^(?:|I )go to the "(.*)" page$</td><td> When I go to the "other" page</td><td>page_name</td></tr><tr><td>navigation </td><td>^(?:|I )follow "([^"]*)"$</td><td> When I follow "Privacy Policy"</td><td>link</td></tr><tr><td>navigation </td><td>^(?:|I )maximize the window$</td><td> When I maximize the window</td><td>N/A</td></tr><tr><td>navigation </td><td>^(?:|I )switch to the (.*) window$</td><td> And I switch to the last window</td><td>first_or_last</td></tr><tr><td>navigation </td><td>^(?:|I )[Ss]witch to the frame$</td><td> And I switch to the frame</td><td>N/A</td></tr><tr><td>navigation </td><td>^(?:|I )[Aa]ccept (?:|the )popup(?:| window)$</td><td> Then I Accept the popup window</td><td>N/A</td></tr><tr><td>navigation </td><td>^(?:|I )[Dd]ismiss (?:|the )popup(?:| window)$</td><td> Then I Dismiss the popup window</td><td>N/A</td></tr><tr><td>navigation </td><td>^(?:|I )[Ss]witch to the iframe$</td><td> And I switch to the iframe</td><td>N/A</td></tr><tr><td>navigation </td><td>^(?:|I )[Ss]witch to the last_iframe$</td><td> And I switch to the last_iframe</td><td>N/A</td></tr><tr><td>scoper</td><td>^(.*) within(?: the| an?)? (.*)$</td><td>N/A</td><td>step_def, parent</td></tr><tr><td>scoper</td><td>^(.*) within(?: the| an?)? (.*):$</td><td>N/A</td><td>step_def, parent, table_or_string</td></tr><tr><td>scoper</td><td>^(.*) in the new window$</td><td>N/A</td><td>step_def</td></tr><tr><td>verification </td><td>^I should be redirected to the "(.*)" page$</td><td> Then I should be redirected to the "congratulations" page</td><td>page_name</td></tr><tr><td>verification </td><td>^I should be redirected to the "(.*?)" page with some parameters$</td><td> Then I should be redirected to the "Results" page with some parameters</td><td>page_name</td></tr><tr><td>verification </td><td>^(?:|I )should be on the "(.*)" page$</td><td> Then I should be on the "congratulations" page</td><td>page_name</td></tr><tr><td>verification </td><td>^(?:|I )should see "(.*)"$</td><td> And I should see "Great, you can click links!"</td><td>text</td></tr><tr><td>verification </td><td>^(?:|I )should not see "(.*)"$</td><td> And I should not see "some bla-bla"</td><td>text</td></tr><tr><td>verification </td><td>^(?:|I )should see \/([^\/]*)\/([imxo])?$</td><td> Then I should see /great/i</td><td>regexp,flags</td></tr><tr><td>verification </td><td>^(?:|I )should not see \/([^\/]*)\/([imxo])?$</td><td> Then I should not see /bla-bla/i</td><td>regexp,flags</td></tr><tr><td>verification </td><td>^I should see all of the texts:?$</td><td> Then I should see all of the texts: <pass a table with text values></td><td>table</td></tr><tr><td>verification </td><td>^I should see the "(.*?)" text as "(.*)"$</td><td> Not yet implemented</td><td>locator, text</td></tr><tr><td>verification </td><td>^(?: |I )should see the "(.*)"(?: button| link)$</td><td> Then I should see the "Submit" button</td><td>link_or_button_text</td></tr><tr><td>verification </td><td>^(?: |I )should not see the "(.*)"(?: button| link)$</td><td> And I should not see the "Click Me" link</td><td>button_or_link_text</td></tr><tr><td>verification </td><td>^I should see an? link that points to "([^"]*)"$</td><td> Then I should see a link that points to "http://www.google.com/"</td><td>href_destination</td></tr><tr><td>verification </td><td>^the (first|last|[0-9]+(?:th|st|rd|nd)) instance of "(.*?)" should be disabled$</td><td> Then the 5th instance of "Page1PaginationLinks" should be disabled</td><td>index, button_or_link</td></tr><tr><td>verification </td><td>^I should see that all asset references on the page are valid$</td><td> Then I should see that all asset references on the page are valid</td><td>N/A</td></tr><tr><td>verification </td><td>^I should see that all links on the page are valid$</td><td> And I should see that all links on the page are valid</td><td>N/A</td></tr><tr><td>verification </td><td>^I should be on page (\d+)$</td><td> Then I should be on page 2</td><td>page_number</td></tr><tr><td>verification </td><td>^I should see the following(?: errors| list):$</td><td> Not yet implemented</td><td>table</td></tr><tr><td>verification </td><td>^I should see an? "([^"]*)" tag around the text "([^"]*)"$</td><td> Then I should see a "td" tag around "bla"</td><td>tag_name, text</td></tr><tr><td>verification </td><td>^I should see an? "([^"]*)" with "([^"]*)" of "([^"]*)"$</td><td> Then I should see a "div" with "id" of "ui-datepicker-div"</td><td>tag_name, attribute_name, attribute_value</td></tr><tr><td>verification </td><td>^I should see the image "([^"]*)"$</td><td> Then I should see the image "Image1.jpg"</td><td>image_name</td></tr><tr><td>verification </td><td>^I should see all of the images:?$</td><td> Then I should see all of the images: <accepts a list of image names(src)></td><td>table</td></tr><tr><td>verification </td><td>^(?:|I )should see text "(.*)" as alt text for (.*)$</td><td> Then I should see text "some alt text" as alt text for ImageSelector</td><td>alt_text, locator</td></tr><tr><td>verification </td><td>^I should see the HTML5 audio source "([^"]*)"$</td><td> Then I should see the HTML5 audio source "Audio.mp3"</td><td>audio_name</td></tr><tr><td>verification </td><td>^I should see all of the HTML5 audio sources:?$</td><td> Then I should see the HTML5 audio sources: <Accepts a list of audio file names></td><td>table</td></tr><tr><td>verification </td><td>^I should see the HTML5 video source "([^"]*)"$</td><td> Then I should see the HTML5 video source "video1.mp4"</td><td>video_name</td></tr><tr><td>verification </td><td>^I should see all of the HTML5 video sources:$</td><td> Then I should see the HTML5 video sources: <accepts a table of video sources></td><td>table</td></tr><tr><td>verification </td><td>^I should see (\d+) elements? kind of (.+)$</td><td> Then I should see 2 elements kind of table's header</td><td>count, locator</td></tr><tr><td>verification </td><td>^I should not see elements? kind of (.+)$</td><td> And I should not see elements kind of paragraphs</td><td>locator</td></tr><tr><td>verification </td><td>^I should see "(.*?)" as "(.*?)" value$</td><td> Not Implemented yet</td><td>arg1, arg2</td></tr><tr><td>verification </td><td>^I should see the correct "(.*)"$</td><td> Then I should see the correct "MedicareGovHeader"</td><td>section</td></tr>
81
+ </tbody>
82
+ </table>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </body>
87
+
88
+ </html>
@@ -1,4 +1,4 @@
1
-
2
- Feature:
3
-
1
+
2
+ Feature:
3
+
4
4
  Scenario:
@@ -1,4 +1,4 @@
1
-
2
- Feature:
3
-
1
+
2
+ Feature:
3
+
4
4
  Scenario:
@@ -1,4 +1,4 @@
1
-
2
- Feature:
3
-
1
+
2
+ Feature:
3
+
4
4
  Scenario:
@@ -1,11 +1,11 @@
1
- # This file is used to manage some global settings for your test project.
2
- # This file must be valid YAML
3
- # You can read about YAML syntax here: http://www.ansibleworks.com/docs/YAMLSyntax.html
4
- # This YAML checker may come in handy too: http://yamllint.com/
5
- # *********************************************************************************************
6
-
7
- ---
8
- Production: "http://replace with production environment url .com/"
9
- Test: "http://replace with test environment url .com/"
10
- Dev: "http://replace with dev environment url .com/"
1
+ # This file is used to manage some global settings for your test project.
2
+ # This file must be valid YAML
3
+ # You can read about YAML syntax here: http://www.ansibleworks.com/docs/YAMLSyntax.html
4
+ # This YAML checker may come in handy too: http://yamllint.com/
5
+ # *********************************************************************************************
6
+
7
+ ---
8
+ Production: "http://replace with production environment url .com/"
9
+ Test: "http://replace with test environment url .com/"
10
+ Dev: "http://replace with dev environment url .com/"
11
11
  Staging: "http://replace with staging environment url .com/"
@@ -1,26 +1,26 @@
1
- # This file is used to manage paths to the various pages in the your application.
2
- # Paths set here can be refered to by their name in steps such as:
3
- # Given I am on the "form" page
4
- # OR
5
- # Then I should be redirected to the "other" page
6
- # Both "form" and "other" in these examples are looked up in this file during test case execution.
7
- # If they are not found, the test case will fail.
8
- # You can provide both full URLs and relative paths in this file. For example, you can point to external links
9
- # like this:
10
- # google_maps: http://maps.google.com
11
- # When providing URLs, you must provide the full URL (including http or https)
12
- # In most cases though, it makes more sense to simply provide a relative path like:
13
- # search: '/search.html'
14
- # If the current environment is set to:
15
- # Production: 'http://your production url.com'
16
- # Then the "search" page in this example is understood to be
17
- # 'http://your production url.com/search.html'
18
- # This file must be valid YAML
19
- # You can read about YAML syntax here: http://www.ansibleworks.com/docs/YAMLSyntax.html
20
- # This YAML checker may come in handy too: http://yamllint.com/
21
- # *********************************************************************************************
22
-
23
- ---
24
- form: form/page
25
- home: ""
26
- other: other/page
1
+ # This file is used to manage paths to the various pages in the your application.
2
+ # Paths set here can be refered to by their name in steps such as:
3
+ # Given I am on the "form" page
4
+ # OR
5
+ # Then I should be redirected to the "other" page
6
+ # Both "form" and "other" in these examples are looked up in this file during test case execution.
7
+ # If they are not found, the test case will fail.
8
+ # You can provide both full URLs and relative paths in this file. For example, you can point to external links
9
+ # like this:
10
+ # google_maps: http://maps.google.com
11
+ # When providing URLs, you must provide the full URL (including http or https)
12
+ # In most cases though, it makes more sense to simply provide a relative path like:
13
+ # search: '/search.html'
14
+ # If the current environment is set to:
15
+ # Production: 'http://your production url.com'
16
+ # Then the "search" page in this example is understood to be
17
+ # 'http://your production url.com/search.html'
18
+ # This file must be valid YAML
19
+ # You can read about YAML syntax here: http://www.ansibleworks.com/docs/YAMLSyntax.html
20
+ # This YAML checker may come in handy too: http://yamllint.com/
21
+ # *********************************************************************************************
22
+
23
+ ---
24
+ form: form/page
25
+ home: ""
26
+ other: other/page
@@ -1,44 +1,44 @@
1
- # This file is used to manage selectors for the test project.
2
- # Selectors are used to look up specific elements in the HTML page.
3
- #
4
- # An element can be anything enclosed in a valid HTML tag, for example:
5
- # <div id="map"></div> is an element and so is:
6
- #
7
- # When performing tests it is sometimes useful to be able to refer to a specific element.
8
- # In most cases you can do this by referencing the Name or the label of the element. For example:
9
- # to click a button with the name "Search" you can simply write a step:
10
- #
11
- # And I click on the "Search" button
12
- #
13
- # and this will work on most web pages without any special set up. The framework here is making an intelligent guess
14
- # about what you mean based on some common web standards. Sometimes these guesses are not accurate (like when you have two Search buttons on the same page) or worse the framework
15
- # just refuses to guess (when attributes like name, id or label are not correctly set in the DOM). In such cases you would need to specify a selector in this file.
16
- #
17
- # For example in the step:
18
- #
19
- # Then I should see "correct results" within "ResultsTable"
20
- #
21
- # You might have to first set up a selector called "ResultsTable" in this file.
22
- # You can set up selectors using xpath or a css selector. For a better understanding of
23
- # xpath try: http://www.w3schools.com/xpath/ and
24
- # css selectors: http://www.w3schools.com/cssref/css_selectors.asp
25
- #
26
- # It is always preferred to use the CSS selectors where possible. CSS Selectors are faster and work better with resource constrained mobile devices.
27
- # You can add a css selector for a table element in the web page:
28
- # <table id='resultsTable'>....</table>
29
- # like this:
30
- # ResultsTable: "css:table#resultsTable"
31
- #
32
- # If you need to use xpath then for the same table element it will be:
33
- # ResultsTable: "xpath:/html/body/table[@id='resultsTable']"
34
- #
35
- # This file must be valid YAML
36
- # You can read about YAML syntax here: http://www.ansibleworks.com/docs/YAMLSyntax.html
37
- # This YAML checker may come in handy too: http://yamllint.com/
38
- # *********************************************************************************************
39
-
40
- ---
41
- Header1CSS: "css:html > body > table > tbody > tr > th:first-child"
42
- Header2Xpath: "xpath:/html/body/table/tbody/tr[1]/th[2]"
43
- SquirrelImageCSS: "css:img"
44
- SquirrelImageXpath: "xpath:/html/body/img[1]"
1
+ # This file is used to manage selectors for the test project.
2
+ # Selectors are used to look up specific elements in the HTML page.
3
+ #
4
+ # An element can be anything enclosed in a valid HTML tag, for example:
5
+ # <div id="map"></div> is an element and so is:
6
+ #
7
+ # When performing tests it is sometimes useful to be able to refer to a specific element.
8
+ # In most cases you can do this by referencing the Name or the label of the element. For example:
9
+ # to click a button with the name "Search" you can simply write a step:
10
+ #
11
+ # And I click on the "Search" button
12
+ #
13
+ # and this will work on most web pages without any special set up. The framework here is making an intelligent guess
14
+ # about what you mean based on some common web standards. Sometimes these guesses are not accurate (like when you have two Search buttons on the same page) or worse the framework
15
+ # just refuses to guess (when attributes like name, id or label are not correctly set in the DOM). In such cases you would need to specify a selector in this file.
16
+ #
17
+ # For example in the step:
18
+ #
19
+ # Then I should see "correct results" within "ResultsTable"
20
+ #
21
+ # You might have to first set up a selector called "ResultsTable" in this file.
22
+ # You can set up selectors using xpath or a css selector. For a better understanding of
23
+ # xpath try: http://www.w3schools.com/xpath/ and
24
+ # css selectors: http://www.w3schools.com/cssref/css_selectors.asp
25
+ #
26
+ # It is always preferred to use the CSS selectors where possible. CSS Selectors are faster and work better with resource constrained mobile devices.
27
+ # You can add a css selector for a table element in the web page:
28
+ # <table id='resultsTable'>....</table>
29
+ # like this:
30
+ # ResultsTable: "css:table#resultsTable"
31
+ #
32
+ # If you need to use xpath then for the same table element it will be:
33
+ # ResultsTable: "xpath:/html/body/table[@id='resultsTable']"
34
+ #
35
+ # This file must be valid YAML
36
+ # You can read about YAML syntax here: http://www.ansibleworks.com/docs/YAMLSyntax.html
37
+ # This YAML checker may come in handy too: http://yamllint.com/
38
+ # *********************************************************************************************
39
+
40
+ ---
41
+ Header1CSS: "css:html > body > table > tbody > tr > th:first-child"
42
+ Header2Xpath: "xpath:/html/body/table/tbody/tr[1]/th[2]"
43
+ SquirrelImageCSS: "css:img"
44
+ SquirrelImageXpath: "xpath:/html/body/img[1]"
@@ -1,26 +1,26 @@
1
- # This file is used to manage some global settings for your test project.
2
- # This file must be valid YAML
3
- # You can read about YAML syntax here: http://www.ansibleworks.com/docs/YAMLSyntax.html
4
- # This YAML checker may come in handy too: http://yamllint.com/
5
- # *********************************************************************************************
6
-
7
- ---
8
- DEFAULT_DATE_FORMAT: mm/dd/yyyy # Supports any combination of mm, dd, yyyy or yy Set a default format for date helpers to be used in expressions like "Today's Date" in the framework..
9
- DEFAULT_ENVIRONMENT: Production #The default environment tests will be run against when none is supplied
10
- MAX_WAIT_TIME: 2 #seconds. When a test fails because of a potential issue with DOM loading, the framework will retry running the test for this much time. If your application is slow, feel free to increase this time and see if it reduces failures.
11
- MIN_WAIT_TIME: 0 #seconds. Used when validating absence of a DOM element, typically this is shorter than the default wait time, since we don't want to wait too long for elements we are not expecting will be present
12
- HTTP_TIMEOUT: 3 # this is the default number of seconds SimpliTest will wait for either a connection to be open or to receive a valid http response, when using the "all links on this page are valid" step. This does not apply to other HTTP requests within SimpliTest, but that might change in the future.
13
- WAIT_FOR_PAGE_LOAD: 0 #seconds. Wait for so many seconds everytime a new page is loaded
14
- SCREEN_SIZE: Desktop # also accepts values like Tablet, Mobile and Landscape
15
- DRIVER: chrome #change this to phantomjs to run in headless mode, other options include: chrome, phantomjs, ie, selenium
16
- MODE: REGULAR #change this to DEBUG to see detailed console output
17
- DESKTOP_MAX_HEIGHT: 980
18
- DESKTOP_MAX_WIDTH: 2000
19
- MOBILE_MAX_HEIGHT: 868
20
- MOBILE_MAX_WIDTH: 362
21
- TABLET_MAX_HEIGHT: 868
22
- TABLET_MAX_WIDTH: 814
23
- LANDSCAPE_MAX_HEIGHT: 362
24
- LANDSCAPE_MAX_WIDTH: 522
25
- QUIT_ON_FAIL: false
26
-
1
+ # This file is used to manage some global settings for your test project.
2
+ # This file must be valid YAML
3
+ # You can read about YAML syntax here: http://www.ansibleworks.com/docs/YAMLSyntax.html
4
+ # This YAML checker may come in handy too: http://yamllint.com/
5
+ # *********************************************************************************************
6
+
7
+ ---
8
+ DEFAULT_DATE_FORMAT: mm/dd/yyyy # Supports any combination of mm, dd, yyyy or yy Set a default format for date helpers to be used in expressions like "Today's Date" in the framework..
9
+ DEFAULT_ENVIRONMENT: Production #The default environment tests will be run against when none is supplied
10
+ MAX_WAIT_TIME: 2 #seconds. When a test fails because of a potential issue with DOM loading, the framework will retry running the test for this much time. If your application is slow, feel free to increase this time and see if it reduces failures.
11
+ MIN_WAIT_TIME: 0 #seconds. Used when validating absence of a DOM element, typically this is shorter than the default wait time, since we don't want to wait too long for elements we are not expecting will be present
12
+ HTTP_TIMEOUT: 3 # this is the default number of seconds SimpliTest will wait for either a connection to be open or to receive a valid http response, when using the "all links on this page are valid" step. This does not apply to other HTTP requests within SimpliTest, but that might change in the future.
13
+ WAIT_FOR_PAGE_LOAD: 0 #seconds. Wait for so many seconds everytime a new page is loaded
14
+ SCREEN_SIZE: Desktop # also accepts values like Tablet, Mobile and Landscape
15
+ DRIVER: chrome #change this to phantomjs to run in headless mode, other options include: chrome, phantomjs, ie, selenium
16
+ MODE: REGULAR #change this to DEBUG to see detailed console output
17
+ DESKTOP_MAX_HEIGHT: 980
18
+ DESKTOP_MAX_WIDTH: 2000
19
+ MOBILE_MAX_HEIGHT: 868
20
+ MOBILE_MAX_WIDTH: 362
21
+ TABLET_MAX_HEIGHT: 868
22
+ TABLET_MAX_WIDTH: 814
23
+ LANDSCAPE_MAX_HEIGHT: 362
24
+ LANDSCAPE_MAX_WIDTH: 522
25
+ QUIT_ON_FAIL: false
26
+
@@ -1,33 +1,33 @@
1
- =begin
2
- *******************************************************************
3
- This file sets some very important configuration settings for the framework
4
- DO NOT DELETE THIS FILE
5
- Some options are configurable, but changing this file is not recommended
6
- It might cause all your tests to fail!!
7
- Unless you know what you are doing :)
8
- The defaults are shown below, you can customize any of these:
9
- configuration = {
10
- :support_directory => 'path_to_your_project/features/support',
11
- :environments_file => 'path_to_your_project/features/support/config/environments.yml',
12
- :environments => {},
13
- :environment => '',
14
- :settings_file => 'path_to_your_project/features/support/config/settings.yml',
15
- :settings => {},
16
- :pages_file => 'path_to_your_project/features/support/config/pages.yml',
17
- :pages => {},
18
- :selectors_file => 'path_to_your_project/features/support/config/selectors.yml',
19
- :selectors => {},
20
-
21
- }
22
- You only need to specify a file or a hash for each property. For example, you can specify either a
23
- YAML file with a mapping of all paths to be used in your test suite or simply pass those paths as a hash here.
24
-
25
- IMPORTANT: configuration must be loaded before requiring SimpliTest/steps or this will not work!!
26
- ********************************************************************
27
- =end
28
-
29
- require 'SimpliTest'
30
- SimpliTest.configure( {:support_directory => File.dirname(__FILE__)})
31
- require 'SimpliTest/config/environment'
32
-
33
-
1
+ =begin
2
+ *******************************************************************
3
+ This file sets some very important configuration settings for the framework
4
+ DO NOT DELETE THIS FILE
5
+ Some options are configurable, but changing this file is not recommended
6
+ It might cause all your tests to fail!!
7
+ Unless you know what you are doing :)
8
+ The defaults are shown below, you can customize any of these:
9
+ configuration = {
10
+ :support_directory => 'path_to_your_project/features/support',
11
+ :environments_file => 'path_to_your_project/features/support/config/environments.yml',
12
+ :environments => {},
13
+ :environment => '',
14
+ :settings_file => 'path_to_your_project/features/support/config/settings.yml',
15
+ :settings => {},
16
+ :pages_file => 'path_to_your_project/features/support/config/pages.yml',
17
+ :pages => {},
18
+ :selectors_file => 'path_to_your_project/features/support/config/selectors.yml',
19
+ :selectors => {},
20
+
21
+ }
22
+ You only need to specify a file or a hash for each property. For example, you can specify either a
23
+ YAML file with a mapping of all paths to be used in your test suite or simply pass those paths as a hash here.
24
+
25
+ IMPORTANT: configuration must be loaded before requiring SimpliTest/steps or this will not work!!
26
+ ********************************************************************
27
+ =end
28
+
29
+ require 'SimpliTest'
30
+ SimpliTest.configure( {:support_directory => File.dirname(__FILE__)})
31
+ require 'SimpliTest/config/environment'
32
+
33
+