Skip to content

Commit

Permalink
adding file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijs Paulides committed May 29, 2017
1 parent ad73a94 commit be54825
Show file tree
Hide file tree
Showing 28 changed files with 171 additions and 152 deletions.
Empty file modified Gemfile
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified config/config.yml
100644 → 100755
Empty file.
Empty file modified config/cucumber.yml
100644 → 100755
Empty file.
Empty file modified config/devices.yml
100644 → 100755
Empty file.
Empty file modified data.rb
100644 → 100755
Empty file.
Empty file modified features/account.feature
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions features/example.feature
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ I want to run and adjust the tests below
Scenario Outline: example03 - checking multiple pages for the logo with examples
Given the user navigates to "<page>"
When the user clicks on the spritecloud logo
Then the user should be on page "tesing"
Then the user should be on page "about-us"
Examples:
| page |
| blog |
Expand All @@ -33,7 +33,7 @@ I want to run and adjust the tests below
Scenario Outline: example03 - checking multiple pages for the logo with scenarios
Given the user navigates to "<page>"
When the user clicks on the spritecloud logo
Then the user should be on page "tesing"
Then the user should be on page "testing"
Scenarios:
| page |
| blog |
Expand Down
28 changes: 14 additions & 14 deletions features/multifind_test.feature
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
@multifind
Feature: testing multifind

Scenario: Searching for multiple elements with 1 results
Given the user navigates to URL "http://training-page.testautomation.info/"
Then the user expects a result in a multi_find lookup
Then the user expects an error in a multi_find lookup
Then the user expects no error in a multi_find lookup
Then the user expects 2 results in a multi_find_all lookup
Then the user expects 1 results in a multi_find_all lookup
Then the user expects 4 existing results in a multi_find_all lookup
Then the user expects an error in a multi_find_all lookup
Then the user expects no error in a multi_find_all lookup
Then the user expects an error in a multi_find_all lookup matching all elements
@multifind
Feature: testing multifind

Scenario: Searching for multiple elements with 1 results
Given the user navigates to URL "http://training-page.testautomation.info/"
Then the user expects a result in a multi_find lookup
Then the user expects an error in a multi_find lookup
Then the user expects no error in a multi_find lookup
Then the user expects 2 results in a multi_find_all lookup
Then the user expects 1 results in a multi_find_all lookup
Then the user expects 4 existing results in a multi_find_all lookup
Then the user expects an error in a multi_find_all lookup
Then the user expects no error in a multi_find_all lookup
Then the user expects an error in a multi_find_all lookup matching all elements
Then the user expects no error in a multi_find_all lookup matching all elements
Empty file modified features/outline_test.feature
100644 → 100755
Empty file.
Empty file modified features/step_definitions/interaction_steps.rb
100644 → 100755
Empty file.
270 changes: 135 additions & 135 deletions features/step_definitions/multifind_steps.rb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,136 +1,136 @@
Given(/^the user expects a result in a multi_find lookup$/) do
elm = browser.multi_find(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sc']}
]
)
unless elm.text == 'blog'
error "Expected element with text `blog`, but received `#{elm.text}`"
end
end

Given(/^the user expects an error in a multi_find lookup$/) do
err = ''
begin
elm = browser.multi_find(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sca']}
]
)
err = "Expected an error looking for elements with no results."
rescue RuntimeError => e
puts "Caught expected error: #{e.message}"
end
error err unless err.empty?
end

Given(/^the user expects no error in a multi_find lookup$/) do
elm = browser.multi_find(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sca']}
],
:throw => false
)
unless elm.nil?
error "Expected the result to be nil."
end
end

Given(/^the user expects 2 results in a multi_find_all lookup$/) do
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'text'}},
{:like => [:a, :id, 'link-sc']}
]
)
unless elm.length == 2
error "Expected 2 elements, but received `#{elm.length}`"
end
end

Given(/^the user expects 1 results in a multi_find_all lookup$/) do
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sc']}
]
)
unless elm[0].text == 'blog'
error "Expected element with text `blog`, but received `#{elm.text}`"
end
end

Given(/^the user expects 4 existing results in a multi_find_all lookup$$/) do
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'text'}, :filter_by => :exists?},
{:like => [:a, :id, 'link-sc']}
]
)
unless elm.length == 4
error "Expected 4 elements, but received `#{elm.length}`"
end
end

Given(/^the user expects an error in a multi_find_all lookup$/) do
err = ''
begin
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sca']}
]
)
err = "Expected an error looking for elements with no results."
rescue RuntimeError => e
puts "Caught expected error: #{e.message}"
end
error err unless err.empty?
end

Given(/^the user expects no error in a multi_find_all lookup$/) do
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sca']}
],
:throw => false
)
unless elm.length == 0
error "Expected to receive 0 results."
end
end

Given(/^the user expects an error in a multi_find_all lookup matching all elements$/) do
err = ''
begin
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sc']}
],
:mode => :match_all
)
err = "Expected an error matching all elements with results."
rescue RuntimeError => e
puts "Caught expected error: #{e.message}"
end
error err unless err.empty?
end
Given(/^the user expects no error in a multi_find_all lookup matching all elements$/) do

elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sc']}
],
:mode => :match_all,
:throw => false
)
unless elm.length == 0
error "Expected to receive 0 results."
end
Given(/^the user expects a result in a multi_find lookup$/) do
elm = browser.multi_find(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sc']}
]
)
unless elm.text == 'blog'
error "Expected element with text `blog`, but received `#{elm.text}`"
end
end

Given(/^the user expects an error in a multi_find lookup$/) do
err = ''
begin
elm = browser.multi_find(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sca']}
]
)
err = "Expected an error looking for elements with no results."
rescue RuntimeError => e
puts "Caught expected error: #{e.message}"
end
error err unless err.empty?
end

Given(/^the user expects no error in a multi_find lookup$/) do
elm = browser.multi_find(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sca']}
],
:throw => false
)
unless elm.nil?
error "Expected the result to be nil."
end
end

Given(/^the user expects 2 results in a multi_find_all lookup$/) do
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'text'}},
{:like => [:a, :id, 'link-sc']}
]
)
unless elm.length == 2
error "Expected 2 elements, but received `#{elm.length}`"
end
end

Given(/^the user expects 1 results in a multi_find_all lookup$/) do
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sc']}
]
)
unless elm[0].text == 'blog'
error "Expected element with text `blog`, but received `#{elm.text}`"
end
end

Given(/^the user expects 4 existing results in a multi_find_all lookup$$/) do
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'text'}, :filter_by => :exists?},
{:like => [:a, :id, 'link-sc']}
]
)
unless elm.length == 4
error "Expected 4 elements, but received `#{elm.length}`"
end
end

Given(/^the user expects an error in a multi_find_all lookup$/) do
err = ''
begin
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sca']}
]
)
err = "Expected an error looking for elements with no results."
rescue RuntimeError => e
puts "Caught expected error: #{e.message}"
end
error err unless err.empty?
end

Given(/^the user expects no error in a multi_find_all lookup$/) do
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sca']}
],
:throw => false
)
unless elm.length == 0
error "Expected to receive 0 results."
end
end

Given(/^the user expects an error in a multi_find_all lookup matching all elements$/) do
err = ''
begin
elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sc']}
],
:mode => :match_all
)
err = "Expected an error matching all elements with results."
rescue RuntimeError => e
puts "Caught expected error: #{e.message}"
end
error err unless err.empty?
end
Given(/^the user expects no error in a multi_find_all lookup matching all elements$/) do

elm = browser.multi_find_all(
:selectors => [
{:input => {:type => 'texta'}},
{:like => [:a, :id, 'link-sc']}
],
:mode => :match_all,
:throw => false
)
unless elm.length == 0
error "Expected to receive 0 results."
end
end
Empty file modified features/step_definitions/precondition_steps.rb
100644 → 100755
Empty file.
Empty file modified features/step_definitions/validation_steps.rb
100644 → 100755
Empty file.
Empty file modified features/support/env.rb
100644 → 100755
Empty file.
Empty file modified features/support/functions.rb
100644 → 100755
Empty file.
Empty file modified features/support/portal_importer.rb
100644 → 100755
Empty file.
19 changes: 19 additions & 0 deletions logs/config.log
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -1525,3 +1525,22 @@ I, [2017-05-16T10:35:23+0200 #13248] config.log: Starting Scenario: features_out
I, [2017-05-16T10:35:23+0200 #13248] config.log: Starting Scenario: features_outline_test.feature_14-This_is_line_2-This_is_line_14
D, [2017-05-16T10:35:23+0200 #13248] config.log: Storage 'metadata' is empty
D, [2017-05-16T10:35:23+0200 #13248] config.log: Creating metadata storage
Logging to './logs/config.log' initialized with level INFO.
Logging to './logs/config.log' initialized with level INFO.
D, [2017-05-29T14:11:36+0200 #31255] config.log: Creating metadata storage
I, [2017-05-29T14:11:36+0200 #31255] config.log: Starting Scenario: features_example.feature_8-Example_Feature-example01_-_Spritecloud_search
I, [2017-05-29T14:11:47+0200 #31255] config.log: Starting Scenario: features_example.feature_14-Example_Feature-example02_-_Going_to_a_search_result
D, [2017-05-29T14:12:04+0200 #31255] config.log: Caught timeout: timed out after 10 seconds
E, [2017-05-29T14:12:04+0200 #31255] config.log: Error in wait - timed out after 10 seconds with selectors: [{:html=>/Let's bark about testing/i, :filter_by=>:present?}] [ https://spritecloud.com/2015/03/announcing-lapislazuli/ ]
D, [2017-05-29T14:12:05+0200 #31255] config.log: Screenshot saved: ./screenshots/170529_141204_example02_-_Going_to_a_search_result.png
I, [2017-05-29T14:12:05+0200 #31255] config.log: Starting Scenario: features_example.feature_26-Example_Feature-example03_-_checking_multiple_pages_for_the_logo_with_examples-blog
D, [2017-05-29T14:12:07+0200 #31255] config.log: Screenshot saved: ./screenshots/170529_141204_example03_-_checking_multiple_pages_for_the_logo_with_examples_Examples_1_.png
I, [2017-05-29T14:12:07+0200 #31255] config.log: Starting Scenario: features_example.feature_27-Example_Feature-example03_-_checking_multiple_pages_for_the_logo_with_examples-home
D, [2017-05-29T14:12:11+0200 #31255] config.log: Screenshot saved: ./screenshots/170529_141204_example03_-_checking_multiple_pages_for_the_logo_with_examples_Examples_2_.png
I, [2017-05-29T14:12:11+0200 #31255] config.log: Starting Scenario: features_example.feature_39-Example_Feature-example03_-_checking_multiple_pages_for_the_logo_with_scenarios-blog
D, [2017-05-29T14:12:13+0200 #31255] config.log: Screenshot saved: ./screenshots/170529_141204_example03_-_checking_multiple_pages_for_the_logo_with_scenarios_Scenarios_1_.png
I, [2017-05-29T14:12:13+0200 #31255] config.log: Starting Scenario: features_example.feature_40-Example_Feature-example03_-_checking_multiple_pages_for_the_logo_with_scenarios-home
D, [2017-05-29T14:12:16+0200 #31255] config.log: Screenshot saved: ./screenshots/170529_141204_example03_-_checking_multiple_pages_for_the_logo_with_scenarios_Scenarios_2_.png
D, [2017-05-29T14:12:16+0200 #31255] config.log: Closing all browsers
D, [2017-05-29T14:12:16+0200 #31255] config.log: Closing browser after exit event trigger: #<Watir::Browser:0x0000000418a778>
D, [2017-05-29T14:12:16+0200 #31255] config.log: Writing storage to: ./storage/metadata.json
Empty file modified output.json
100644 → 100755
Empty file.
Empty file modified output_cc1.3_portal.json
100644 → 100755
Empty file.
Empty file modified output_cc1.3_pretty.json
100644 → 100755
Empty file.
Empty file modified output_pretty.json
100644 → 100755
Empty file.
Empty file modified portal_json.json
100644 → 100755
Empty file.
Empty file modified restults.html
100644 → 100755
Empty file.
Empty file modified results.html
100644 → 100755
Empty file.
Empty file modified short_output.json
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion storage/metadata.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"browser":{"name":"firefox","version":"53.0.2","platform":"windows_nt"}}
{"browser":{"name":"firefox","version":"53.0.3","platform":"linux"}}
Empty file modified yaml_file.yml
100644 → 100755
Empty file.

0 comments on commit be54825

Please sign in to comment.