Skip to content

Commit

Permalink
Added gauge spectacle docs
Browse files Browse the repository at this point in the history
  • Loading branch information
osandadeshan committed Dec 30, 2023
1 parent 53c0e05 commit 0d6076b
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/html/data.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/html/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<article class='markdown-body'><meta charset="utf-8"><link rel="stylesheet" type="text/css" href="style.css"><script src="data.js"></script><center>
<h1>Web-Cross-Browser-Automation-Demo</h1>
<h1>Gauge-Selenium-Java-Web-Ui-Automation</h1>
<input type="text" class="tags" placeholder="Tag expression to Filter specs/scenarios. Example: 'login & product | !customer'" onkeypress="handle(event)"></input>
</center>
<div class="specs"></div>
Expand Down
34 changes: 14 additions & 20 deletions docs/html/specs/Login.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
<article class='markdown-body'><meta charset="utf-8"><link rel="stylesheet" type="text/css" href="..\style.css"><h1>Login Specification</h1>
<p>&lt;pre&gt;
Date Created : 02/09/2018
Version : 1.0.0
Owner : Osanda Deshan
Description : This is an executable specification file which covers the login scenarios.
Run in dev env : mvn test-compile gauge:execute -DspecsDir=&quot;specs&quot; -Denv=&quot;dev&quot;
Run With Tags : mvn test-compile gauge:execute -DspecsDir=&quot;specs&quot; -Denv=&quot;dev&quot; -Dtags=&quot;positive&quot;
Run In Parallel : mvn test-compile gauge:execute -DspecsDir=&quot;specs&quot; -Denv=&quot;dev&quot; -DinParallel=true
Re-run Failures : mvn test-compile gauge:execute -Dflags=&quot;--failed&quot;
Format Specs : gauge format docs
Convert Specs To HTML: gauge docs spectacle specs
&lt;/pre&gt;</p>
<p>table: ./src/test/resources/test data/test users.csv
tags: login</p>
<article class='markdown-body'><meta charset="utf-8"><link rel="stylesheet" type="text/css" href="../style.css"><h1>Login Specification</h1>
<p>Project Name : gauge-java-web-ui-automation-demo
Developer : Osanda Deshan
Version : 1.0.0
Date : 30/12/23
Time : 11:40 AM
Description : This is an executable specification file which covers the login scenarios.</p>
<p>table: ./src/test/resources/test data/test users.csv</p>
<p>tags: login</p>
<h2>Login to the application using valid email and valid password</h2>
<p>tags: positive</p>
<ul>
<li>Login using the email as &lt;Email&gt; and password as &lt;Password&gt;</li>
<li>Signout</li>
<li>Login using the username as &lt;Username&gt; and password as &lt;Password&gt;</li>
<li>Logged-in username should be &lt;Username&gt;</li>
</ul>
<h2>Login to the application using invalid email and invalid password</h2>
<p>tags: negative</p>
<ul>
<li>On login page</li>
<li>Login to the application using the email as &quot;osa@<a href="http://mailinator.com" rel="nofollow">mailinator.com</a>&quot; and password as &quot;admin123&quot;</li>
<li>Page title is &quot;Login - My Store&quot;</li>
<li>Login to the application using the username as &quot;dev-test&quot; and password as &quot;admin123&quot;</li>
<li>Wrong password error alert should be visible</li>
</ul>
<ul id="navigation"><center><li class="nav"><a href="..\index.html">=</a></li></center></article>
<ul id="navigation"><center><li class="nav"><a href="../index.html">=</a></li><li class="nav"><a href="./navigation.html">></a></li></center></article>
50 changes: 50 additions & 0 deletions docs/html/specs/navigation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<article class='markdown-body'><meta charset="utf-8"><link rel="stylesheet" type="text/css" href="../style.css"><h1>Navigation Specification</h1>
<p>Project Name : gauge-java-web-ui-automation-demo
Developer : Osanda Deshan
Version : 1.0.0
Date : 30/12/23
Time : 11:40 AM
Description : This is an executable specification file which covers the navigation scenarios.</p>
<p>tags: navigation</p>
<h2>Navigation bar option routing</h2>
<p>tags: positive</p>
<ul>
<li>
<p>The navigation bar option should route to the following URLs</p>
<table>
<thead>
<tr>
<th>Navigation Bar Option</th>
<th>Url</th>
</tr>
</thead>
<tbody>
<tr>
<td>Home</td>
<td>index.html</td>
</tr>
<tr>
<td>Contact</td>
<td>#</td>
</tr>
<tr>
<td>About us</td>
<td>#</td>
</tr>
<tr>
<td>Cart</td>
<td>cart.html</td>
</tr>
<tr>
<td>Log in</td>
<td>#</td>
</tr>
<tr>
<td>Sign up</td>
<td>#</td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul id="navigation"><center><li class="nav"><a href="./login.html"><</a></li><li class="nav"><a href="../index.html">=</a></li></center></article>

0 comments on commit 0d6076b

Please sign in to comment.