-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d63a58
commit 6443aa3
Showing
4 changed files
with
369 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,367 @@ | ||
<html> | ||
<head> | ||
<title>Test Report: demo</title> | ||
<style> | ||
body { | ||
text-align: center; | ||
} | ||
|
||
img { | ||
width: 50vw; | ||
height: auto; | ||
} | ||
|
||
header, footer { | ||
position: fixed; | ||
left: 0; | ||
right: 0; | ||
background: #368657; | ||
color: white; | ||
font-weight: bold; | ||
font-style: italic; | ||
text-align: center; | ||
vertical-align: middle; | ||
} | ||
header { | ||
top: 0; | ||
} | ||
footer { | ||
bottom: 0; | ||
} | ||
|
||
header h1 { | ||
font-size: 18px; | ||
} | ||
|
||
header h2 { | ||
font-size: 16px; | ||
} | ||
|
||
.container { | ||
width: 70 vw; | ||
top: 100px; | ||
bottom: 100px; | ||
overflow: hidden; | ||
padding-top: 100px; | ||
padding-bottom: 100px; | ||
text-align: left; | ||
} | ||
|
||
div { | ||
font-size: 16px; | ||
} | ||
|
||
.comment { | ||
color: #d7cbb2; | ||
} | ||
|
||
.successful-stmt { | ||
color: #368657; | ||
} | ||
|
||
.errored-stmt { | ||
color: #b52d0e; | ||
} | ||
|
||
.error { | ||
color: #d7cbb2; | ||
font-size: 14px; | ||
font-style: italic; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
|
||
|
||
|
||
<header> | ||
<h1>Test Report: demo</h1> | ||
<h2>Executed at: Mon Jan 9 06:03:55 2023</h2> | ||
</header> | ||
<div class="container"> | ||
|
||
|
||
|
||
<div class="comment"># A demo of how SchnauzerUI simplifies complex Selenium tasks</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># Navigate to a website with the url command</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="successful-stmt">Statement Succeeded: url "https://automationintesting.com/selenium/testpage/"</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># Use "smart locators" to easily locate elements without</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># having to think about HTML</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># Locate an input by its label</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="successful-stmt">Statement Succeeded: locate "First name" and type "Benjamin"</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># Or its placeholder</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="successful-stmt">Statement Succeeded: locate "Enter your surname" and type "Peinhardt"</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># Built in select support</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="successful-stmt">Statement Succeeded: locate "Gender" and select "Male"</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="successful-stmt">Statement Succeeded: locate "Which continents have you visited" and select "Asia"</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># Escape to using XPaths for complete control</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="successful-stmt">Statement Succeeded: locate "//*[@id='red']" and click</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># It knows about textareas too.</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="successful-stmt">Statement Succeeded: locate "Tell me more!" and type "there's not much to tell"</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># Easily locate all kinds of inputs</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="successful-stmt">Statement Succeeded: locate "Email" and click</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="successful-stmt">Statement Succeeded: locate "SMS" and click</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># Supporting commands like screenshots, error handling, etc.</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="successful-stmt">Statement Succeeded: screenshot</div> | ||
|
||
|
||
|
||
|
||
|
||
<div> | ||
<img src=./screenshots/demo_screenshot_1.png /> | ||
</div> | ||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
|
||
|
||
<div class="comment"># Now lets cause an error to see what it looks like in the report</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="errored-stmt">Statement Failed: locate "I don't exist" and click</div> | ||
<div class="error">Error: Could not locate the element</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|
||
|
||
|
||
</div> | ||
<footer>Test Report created with SchnauzerUI</footer> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.