-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2493 from codehackerr/develop
2499: Improve auto-screenshot on error in report
- Loading branch information
Showing
3 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: browser automation demo | ||
|
||
Background: | ||
* configure driver = { type: 'chrome' } | ||
@ignore | ||
Scenario: try to login to github and then do a google search | ||
Simulates step failure for testing embedded screenshots. Remove @ignore for developement | ||
|
||
Given driver 'https://github.com/login' | ||
And input('#login_field', 'YYY') | ||
And input('#password', 'world') | ||
When submit().click("input[name=commit]") | ||
Then match html('.flash-error') contains 'Bad username or password.' | ||
|
||
Given driver 'https://google.com' | ||
# And click('{}Accept all') | ||
And input("[name=q][name=q]", 'karate dsl') | ||
When submit().click("input[name=btnI]") | ||
Then waitForUrl('https://github.com/karatelabs/karate') | ||
|
||
Scenario: Dummy not to fail build | ||
* print 'dummy' |