Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
josepharul82 committed Sep 21, 2023
1 parent a7c5737 commit 3cd702c
Show file tree
Hide file tree
Showing 335 changed files with 12,971 additions and 2,567 deletions.
53 changes: 53 additions & 0 deletions README-save.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Installer la JDK avec le certificats AXA !

# Command for run the project with desktop mode
java -jar WebRunner.jar "-a:C:\work\projet-git\solaris-automation-keyword-driven\target\solaris-automation-1.0-SNAPSHOT.jar"
"-data:C:\work\projet-git\Automatisation_Edecla_Front\src\main\resources\TEST_SUITE_RECETTE.xml"
"-env:C:\work\projet-git\Automatisation_Edecla_Front\src\main\resources\ENV_RECETTE.xml"
"-browser:ChromiumEdge"
-m
-showreport

# Command for run the project with mobile mode
java -jar WebRunner.jar "-a:C:\work\projet-git\solaris-automation-keyword-driven\target\solaris-automation-1.0-SNAPSHOT.jar"
"-data:C:\work\projet-git\Automatisation_Edecla_Front\src\main\resources\TEST_SUITE_RECETTE.xml"
"-env:C:\work\projet-git\Automatisation_Edecla_Front\src\main\resources\ENV_RECETTE.xml"
"-platform:Android"
"-browser:Chrome"
-m
-showreport


You need to have the "application-properties.yml" in the resource directory
Exemple of this file :

application:
name: axa-fr-automation
platformName: ANDROID
browserName: CHROME
appiumSettings:
gridConnection: https://hub-cloud.browserstack.com/wd/hub
userName: XXXXXXX
password: XXXXXXX
localTestingConfiguration:
activate: true
arguments:
force: true
forcelocal: true
binarypath: C:\\BrowserStack\\BrowserStackLocal.exe
localIdentifier: XXXXYYYY
capabilities:
desiredCapabilitiesMap:
geoLocation: FR => en fonction des applications
deviceName: Samsung Galaxy S20 Ultra
osVersion: 10.0
projectName: e-decla-automation
buildName: e-decla-automation-mobile
sessionName: Samsung
local: true
networkLogs: true
localIdentifier: XXXXYYYY


If you want ton run test with tag
mvn test -Dcucumber.filter.tags="@FirstStep"
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ WebEngine Framework resolves some common problems every test automation project
- Graphical test report.
- **Open Source**, free usage and let’s improve it together!

## Prerequisites
## Prerequisites

Java 8 or higher
Java 8 or higher

Maven

Expand Down Expand Up @@ -86,7 +86,7 @@ pom.xml :
```
linearExample.java :
```
String baseUrl = "http://webengine-test.azurewebsites.net/";
String baseUrl = "https://axafrance.github.io/webengine-dotnet/demo/Test.html";
Optional<WebDriver> optionalWebdriver = BrowserFactory.getWebDriver(Platform.WINDOWS, Browser.CHROME);
if(optionalWebdriver.isPresent()){
WebDriver driver = optionalWebdriver.get();
Expand Down Expand Up @@ -172,7 +172,7 @@ sample.feature :
Feature: Test du formulaire dans la page d'accueil
Scenario: Test du bouton OK
Given I visit the test page "http://webengine-test.azurewebsites.net/"
Given I visit the test page "https://axafrance.github.io/webengine-dotnet/demo/Test.html"
When I press on the OK button
And I see a pop up
And I click on the OK button in the pop up
Expand Down Expand Up @@ -290,7 +290,7 @@ For executing the project, you can run this command :
**java -jar project-name-1.0.0-exec.jar -Dspring.profiles.active=properties-chrome "-data:C:\work\project\src\main\resources\data.xml" "-env:C:\work\project\src\main\resources\env.xml"**

With filter test case
**java -jar project-name-1.0.0-exec.jar -Dspring.profiles.active=properties-chrome "-data:C:\work\project\src\main\resources\data.xml" "-env:C:\work\project\src\main\resources\env.xml" "-tc:TEST_CASE_1"**
**java -jar project-name-1.0.0-exec.jar -Dspring.profiles.active=properties-chrome "-data:C:\work\project\src\main\resources\data.xml" "-env:C:\work\project\src\main\resources\env.xml" "-testcase:TEST_CASE_1"**


If you want run the project from addin excel, you can run this command
Expand All @@ -310,11 +310,11 @@ env.xml
</Variable>
<Variable>
<Name>URL</Name>
<Value>http://webengine-test.azurewebsites.net/</Value>
<Value>https://axafrance.github.io/webengine-dotnet/demo/Test.html</Value>
</Variable>
<Variable>
<Name>URL_PROD</Name>
<Value>http://webengine-test.azurewebsites.net/</Value>
<Value>https://axafrance.github.io/webengine-dotnet/demo/Test.html</Value>
</Variable>
</EnvironmentVariables>
```
Expand Down Expand Up @@ -372,7 +372,7 @@ appiumSettings:
gridConnection: https://hub-cloud.browserstack.com/wd/hub
userName: $(userName)
password: $(password)
localTesting:
localTestingConfiguration:
activate: true
arguments:
force: true
Expand Down
56 changes: 32 additions & 24 deletions example-conf.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
application:
name: spoolnet-automation
webengineConfiguration:
name: myproject-automation
platformName: WINDOWS
browserName: CHROME
appiumSettings:
gridConnection: https://hub-cloud.browserstack.com/wd/hub
userName: XXXXXXX
password: XXXXXXX
localTesting:
activate: false
arguments:
force: true
forcelocal: true
binarypath: C:\\BrowserStack\\BrowserStackLocal.exe
localIdentifier: XXXXYYYY
capabilities:
desiredCapabilitiesMap:
geoLocation: FR
deviceName: Samsung Galaxy S20 Ultra
osVersion: 10.0
projectName: spoolnet-automation
buildName: spoolnet-automation-mobile
sessionName: Samsung
local: true
networkLogs: true
localIdentifier: XXXXYYYY
browserOptionList:
- --incognito
- --remote-allow-origins=*
appiumConfiguration:
gridConnection: https://hub-cloud.browserstack.com/wd/hub
userName: XXXXXXX
password: XXXXXXX
localTesting:
activate: false
arguments:
force: true
forcelocal: true
binarypath: C:\\BrowserStack\\BrowserStackLocal.exe
localIdentifier: XXXXYYYY
capabilities:
desiredCapabilitiesMap:
geoLocation: FR
deviceName: Samsung Galaxy S20 Ultra
osVersion: 10.0
projectName: spoolnet-automation
buildName: spoolnet-automation-mobile
sessionName: Samsung
local: true
networkLogs: true
localIdentifier: XXXXYYYY
applicationConfiguration:
values:
key-1: value-1
key-2: value-2
key-3: value-3
Loading

0 comments on commit 3cd702c

Please sign in to comment.