-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Demo Projects to the User Guide (#266)
* Add Parallel Execution Demo * Add SideBar Access * Fix Issues * Fix Issues * Fix Issues * Fix Parallel Repo Link Mobile Temp Page Added * Fix Parallel Repo Link Mobile Temp Page Added * Fix Parallel Repo Link Try the code snippet * Fix Parallel Repo Link Try the code snippet --------- Co-authored-by: MustafaAgamy <soskaagamy1995@gmail.com> Co-authored-by: MustafaAgamy <mostafagamy1995@gmail.com>
- Loading branch information
1 parent
680545e
commit e4954d8
Showing
3 changed files
with
62 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
id: mobile | ||
title: Demo Projects For Mobile GUI | ||
sidebar_label: Mobile | ||
--- | ||
### Basic Mobile GUI Automation Project | ||
|
||
:::info | ||
You can visit this Repository to for a Demo on how to set Mobile GUI in SHAFT_ENGINE | ||
### [BasicMobile_Demo](https://github.com/MustafaAgamy/ShaftEngine-ParellelWithThreadLocal.git) | ||
::: |
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,41 @@ | ||
--- | ||
id: web | ||
title: Demo Projects For Web GUI | ||
sidebar_label: Web | ||
--- | ||
### Parallel Execution using ThreadLocal Driver | ||
|
||
```java title="ParallelThreadLocalSampleTest" | ||
public class ParallelThreadLocalTest { | ||
private ThreadLocal<SHAFT.GUI.WebDriver> driver = new ThreadLocal<>(); | ||
private SHAFT.TestData.JSON testData; | ||
|
||
@Test | ||
public void signOutTest() { | ||
new HomePage(driver.get()) | ||
.signOut(); | ||
} | ||
|
||
@Test | ||
public void buttonClickTest() { | ||
new HomePage(driver.get()) | ||
.clickMe(); | ||
} | ||
|
||
@BeforeMethod | ||
public void beforeMethodSetUp() { | ||
driver.set(new SHAFT.GUI.WebDriver()); | ||
driver.get().browser().navigateToURL("url"); | ||
} | ||
|
||
@AfterMethod | ||
public void afterMethodTearDown() { | ||
driver.get().quit(); | ||
} | ||
} | ||
``` | ||
|
||
:::info | ||
You can visit this Repository to for a Demo on how to set Parallel Execution in SHAFT_ENGINE | ||
### [ParallelExecution_Demo](https://github.com/MustafaAgamy/ShaftEngine-ParellelWithThreadLocal.git) | ||
::: |
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