Skip to content

Commit

Permalink
Merge pull request #34 from AxaFrance/develop
Browse files Browse the repository at this point in the history
HTML Report support
  • Loading branch information
huaxing-yuan authored Jun 8, 2023
2 parents 580259c + 67c3e97 commit 9a52013
Show file tree
Hide file tree
Showing 49 changed files with 2,071 additions and 83 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ Feel free to reach us if you want to adopt the Framework, report Bugs, or have g
+ Main contributor: Huaxing YUAN [<img src="src/AxaFrance.WebEngine.Doc/images/linked-in.svg" width="16" />](https://www.linkedin.com/in/huaxing-yuan/) [<img src="src/AxaFrance.WebEngine.Doc/images/github.svg" width="16" />](https://github.com/huaxing-yuan) [<img src="src/AxaFrance.WebEngine.Doc/images/twitter.svg" width="16" />](https://twitter.com/huaxing_yuan)

#### Repository Java Project:
+ Project ongoing
+ Main contributor: Joseph ARUL [<img src="src/AxaFrance.WebEngine.Doc/images/github.svg" width="16" />](https://github.com/josepha26)
+ https://github.com/AxaFrance/webengine-java
+ Main contributor:
+ Joseph ARUL [<img src="src/AxaFrance.WebEngine.Doc/images/github.svg" width="16" />](https://github.com/josepharul82)
+ Jean-Prince DOTOU-SEGLA [<img src="src/AxaFrance.WebEngine.Doc/images/github.svg" width="16" />](https://github.com/JeanPrince)
2 changes: 1 addition & 1 deletion docs/demo/Step1.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}

console.log("The loop is finished :)");
window.location.href = "step2.html";
window.location.href = "Step2.html";
}

</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/Step2.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

console.log("The loop is finished :)");
window.location.href = "step3.html";
window.location.href = "Step3.html";
}

</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/Step3.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h3>title3</h3>

</div>

<button onclick="alert('OK, Done.'); window.location.href='step4.html'">I'm done</button>
<button onclick="alert('OK, Done.'); window.location.href='Step4.html'">I'm done</button>

</body>
</html>
65 changes: 27 additions & 38 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"hash": "y6qZaIhmJjm/OcBnQCnOxr3wvxth2N9vMUKd9KiFRI0="
}
},
"is_incremental": true,
"is_incremental": false,
"version": ""
},
{
Expand Down Expand Up @@ -120,7 +120,7 @@
"hash": "6G7MDtz7MAFR4HVPnX97RhEtJR2DHDQaW8yQ9yXk5RI="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -132,7 +132,7 @@
"hash": "FG4jgYHqQ27sPuLDImnYL9/FhLzZqRMgdmd5Q4frM/c="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -144,7 +144,7 @@
"hash": "uTVAZuOhwJTniGG2BYXo//NOhCChbFwIuviQ9KrqjWA="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand Down Expand Up @@ -180,7 +180,7 @@
"hash": "06wiMah/vW3aCSE+kaaee5gFqPZd0A0SeVzPZF2NAB0="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -192,7 +192,7 @@
"hash": "CvEUwP2vYK1/jVQcbSGby2RuRqME0NmFiXcvWoyBl5w="
}
},
"is_incremental": true,
"is_incremental": false,
"version": ""
},
{
Expand Down Expand Up @@ -276,7 +276,7 @@
"hash": "LWBx1zUO7njv0G5wSjs95GvgAFt8i/gap6X9DP466uU="
}
},
"is_incremental": true,
"is_incremental": false,
"version": ""
},
{
Expand All @@ -288,7 +288,7 @@
"hash": "+ub1KzmifW52CQtVQxTLgvPL9GPjJ8GTy5S4N8jSQcs="
}
},
"is_incremental": true,
"is_incremental": false,
"version": ""
},
{
Expand All @@ -312,7 +312,7 @@
"hash": "5P6/ggsY1sCy+u1H81fdiyyvwJYWWO/cNPRppzdOTo8="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -324,7 +324,7 @@
"hash": "zkrImoZaERsqVFSTMnQOEips3r/Z14fI12JqvUzjnyE="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -348,7 +348,7 @@
"hash": "bAN+2SdFcZ7cFh47eHAQrLYRHo2EqX1EMRQs2yH6/xI="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -360,7 +360,7 @@
"hash": "WmB7qS5IaFKCAlqraP+xi8aNbIJ7tKF7YSD8tBE9lsc="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -384,7 +384,7 @@
"hash": "cu2cbQ9KTyIYeAo6LyeIwGag854uLSNLdfYnmU5jpZg="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -396,7 +396,7 @@
"hash": "+kf2qx9TEo4LiHcZEi8hUukppfWbJOzSciUN2Bxri8s="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -408,7 +408,7 @@
"hash": "amFuAcnnKv9DJGvIQREHw4cd/+tFUXdbty41DfzkbLk="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand Down Expand Up @@ -444,7 +444,7 @@
"hash": "2rWScAwCSh5uPpQj4VVAeN567Q71zREismEF8/CwIrc="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand Down Expand Up @@ -492,7 +492,7 @@
"hash": "yjtpmWfJf9GoI5t6v5Sd/Stkx58A16cZr2dhWSKYwB4="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand Down Expand Up @@ -564,7 +564,7 @@
"hash": "1amDogOGTzxHnyT9oCAAIj2BtNmJt0mhTDd/SzCTFFo="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -576,7 +576,7 @@
"hash": "n5gIR04EFxAarRrcbrpMhFulVcAX+zR2W6Z8huo9WEg="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -600,7 +600,7 @@
"hash": "AUbWxPNLNonKVUJduHqxxzHHLA+Nig5IWLy8o2iHXcI="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -612,7 +612,7 @@
"hash": "4h12Prw+1mKmp8IAnakwqOQB6otZaYkqhT9FWU2qcYE="
}
},
"is_incremental": true,
"is_incremental": false,
"version": ""
},
{
Expand Down Expand Up @@ -834,7 +834,7 @@
"hash": "4HnxUtES68HAf98ntmzrZmLjm4e5T4dJIuKGNVfTxJE="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand All @@ -849,17 +849,6 @@
"is_incremental": true,
"version": ""
},
{
"type": "Resource",
"source_relative_path": "demo/ENV.xml",
"output": {
"resource": {
"relative_path": "demo/ENV.xml"
}
},
"is_incremental": false,
"version": ""
},
{
"type": "Resource",
"source_relative_path": "demo/IFrame.html",
Expand Down Expand Up @@ -2280,7 +2269,7 @@
"hash": "wDRaVCLJgnZFl+YJuMz9zozDNa8/hxBbJ1GNn487oV4="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand Down Expand Up @@ -2319,7 +2308,7 @@
"hash": "9uJLTMFZ65AzVshe7wovh7FHVOOXM67GgWKTeIlRpCI="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand Down Expand Up @@ -2379,7 +2368,7 @@
"hash": "rL1gWB/M+47iS4tUVdpTDR1Qs1JSARw4CJdqBVpmoGk="
}
},
"is_incremental": false,
"is_incremental": true,
"version": ""
},
{
Expand Down Expand Up @@ -2582,13 +2571,13 @@
"can_incremental": true,
"incrementalPhase": "build",
"total_file_count": 39,
"skipped_file_count": 38
"skipped_file_count": 39
},
"ManagedReferenceDocumentProcessor": {
"can_incremental": true,
"incrementalPhase": "build",
"total_file_count": 57,
"skipped_file_count": 52
"skipped_file_count": 54
},
"ResourceDocumentProcessor": {
"can_incremental": false,
Expand Down
30 changes: 18 additions & 12 deletions src/AxaFrance.WebEngine.Doc/articles/webrunner.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,40 +68,46 @@ WebRunner.exe "-a:AppProject.dll" "-data:Data.xml" "-env:Staging.xml" -platform:
> Some parameters can be provided in the configuration file `appsettings.json` for C# and `application-properties.yml` for JAVA. please refer to [Test Configuration](appsettings.md)
### Commun parameters
##### -browser:\<browser>
#### -browser:\<browser>
Specifies the browser on which to run test. see: <xref:AxaFrance.WebEngine.BrowserType>.
##### -platform:\<platform>
#### -platform:\<platform>
Specifies The platform for test execution: see: <xref:AxaFrance.WebEngine.Platform>. Default value is `Windows`.
##### -outputDir:\<outputFolder>
#### -outputDir:\<outputFolder>
Specifies the folder to store output of test execution and test report. This parameter is can be defined in `appsetting.json` for C# and `application-properties.yml` for JAVA.
##### -m

#### -m
Specifies the manual debug mode. Use this mode for debugging test scenarios locally. When the test is failed test will pause for manual intervention before clean-up process.
##### -junit:\<junitPath>

#### -junit:\<junit-report-path>
In additional of default XML report, generates a JUnit 2.6 compliant test report. Useful to publish test result to a Continuous Integration Platform
##### -showReport

#### -html:\<html-report-path>
In additional of default XML report, generates a HTML test report. Test report will be generated in the given folder. HTML report contains also css, javascript and screenshot files. If you want the share the report, you have to copy the whole folder.

#### -showReport
Launches `Report Viewer` after test execution.

### Parameters for Mobile testing
To run tests on Mobile device, `-platform`, you should specify the following arguments `Android` or `iOS`.

##### -grid:\<gridUrl>
#### -grid:\<gridUrl>
Indicates the Selenium Grid to connect to device cloud. Default value is `http://localhost:4723/wd/hub` for local Appium Server
If you are using cloud-based device cloud, please refer to service providers documentation.
If the argument is provided, option `desktopGrid` will be automatically set to `true`

##### -desktopGrid
#### -desktopGrid
This option activates the usage of Selenium Grid for Web Desktop tests. If the value is false, the framework only use selenium grid for mobile based tests.

##### -username:\<username>
#### -username:\<username>
Indicates the username to be used for Selenium Grid authentication.

##### -password:\<password>
#### -password:\<password>
Indicates the password to be used for Selenium Grid authentication.

##### -device:\<deviceName>
#### -device:\<deviceName>
Indicates the device name for device selection. for example: `iPhone Xs`, `Huawei P30`. Refers your cloud provider.

##### -osVersion:\<version>
#### -osVersion:\<version>
Indicate the version of the OS for device selection. for example: `14.1`, `9.0`. Refers your cloud provider.

### Where to find WebRunner package?
Expand Down
2 changes: 1 addition & 1 deletion src/AxaFrance.WebEngine.Doc/demo/Step1.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}

console.log("The loop is finished :)");
window.location.href = "step2.html";
window.location.href = "Step2.html";
}

</script>
Expand Down
2 changes: 1 addition & 1 deletion src/AxaFrance.WebEngine.Doc/demo/Step2.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

console.log("The loop is finished :)");
window.location.href = "step3.html";
window.location.href = "Step3.html";
}

</script>
Expand Down
2 changes: 1 addition & 1 deletion src/AxaFrance.WebEngine.Doc/demo/Step3.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h3>title3</h3>

</div>

<button onclick="alert('OK, Done.'); window.location.href='step4.html'">I'm done</button>
<button onclick="alert('OK, Done.'); window.location.href='Step4.html'">I'm done</button>

</body>
</html>
7 changes: 5 additions & 2 deletions src/AxaFrance.WebEngine.Doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,8 @@ Feel free to reach us if you want to adopt the Framework, report Bugs or have go
+ Main contributor: Huaxing YUAN [<img src="images/linked-in.svg" width="16" />](https://www.linkedin.com/in/huaxing-yuan/) [<img src="images/github.svg" width="16" />](https://github.com/huaxing-yuan) [<img src="images/twitter.svg" width="16" />](https://twitter.com/huaxing_yuan)
### Repository Java Project:
+ *[Will be available soon]*
+ Main contributor: Joseph ARUL [<img src="images/github.svg" width="16" />](https://github.com/josepha26)
+ https://github.com/AxaFrance/webengine-java
+ Main contributor: Joseph ARUL [<img src="images/github.svg" width="16" />](https://github.com/josepharul82),
Jean-Prince DOTOU-SEGLA [<img src="images/github.svg" width="16" />](https://github.com/JeanPrince),
Loading

0 comments on commit 9a52013

Please sign in to comment.