Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
huaxing-yuan committed Aug 21, 2024
1 parent ccc21be commit ca5d24e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 48 deletions.
9 changes: 1 addition & 8 deletions src/AxaFrance.WebEngine/AxaFrance.WebEngine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,15 @@

<ItemGroup>
<None Remove="appsettings.json" />
<None Remove="appsettings.json.bak" />
<None Remove="html-report.zip" />
</ItemGroup>

<ItemGroup>
<Content Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="html-report.zip" />
</ItemGroup>

<ItemGroup>
<Resource Include="appsettings.json.bak">
<Resource Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
</ItemGroup>
Expand Down
31 changes: 19 additions & 12 deletions src/AxaFrance.WebEngine/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
{
"LogDir": "C:\\Temp\\",
"FileOutputDir": "C:\\Temp\\PDF\\",
"GridConnection": "https://hub-cloud.browserstack.com/wd/hub",
"Username": "cugnetpascal1",
"Password": "qTJD3xCzAxsuU3xykyQt",
"PackageUploadTargetUrl": "https://api-cloud.browserstack.com/app-automate/upload",
"PackageName": "fr.axa.axaplus.recette",
"LogDir": null,
"GridConnection": "http://localhost:4723/wd/hub",
"GridForDesktop": true,
"UseAppiumForWebMobile": false,
"Username": "<selenium grid username>",
"Password": "<selenium grid password>",
"PackageUploadTargetUrl": "https://yourcloudprovider.com/apploader/upload",
"AllowInsecureCertificate": false,
"PackageName": "my.company.myapplication",
"EncryptionKey": null,
"OsVersion": null,
"BrowserVersion": null,
"Capabilities": {
"additionalCapability1": "value1",
"additionalCapability2": "value2",
"bstack:options": {
"appiumVersion": "2.4.1",
"resignApp": "false"
"other:capability": {
"other1": "true",
"other2": "value"
}
}
},
"chromeOptions": [ "incognito" ],
"firefoxOptions": [],
"edgeOptions": [ "inprivate", "start-maximized" ],
"safariOptions": []
}
25 changes: 0 additions & 25 deletions src/AxaFrance.WebEngine/appsettings.json.bak

This file was deleted.

11 changes: 8 additions & 3 deletions src/WebEngine.Test/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"LogDir": null,
"GridConnection": "https://selenium.grid/wd/hub",
//"GridConnection": "https://hub.browserstack.com/wd/hub",
"GridConnection": "http://localhost:4723/wd/hub",
"GridForDesktop": false,
"UseAppiumForWebMobile": false,
"Username": "********",
"Password": "********",
"Username": "",
"Password": "",
"PackageUploadTargetUrl": "https://yourcloudprovider.com/apploader/upload",
"AllowInsecureCertificate": false,
"PackageName": "my.company.myapplication",
Expand All @@ -16,6 +17,10 @@
"bstack:options": {
"appiumVersion": "2.4.1",
"resignApp": "false"
},
"other:capability": {
"key": "value",
"key2": 12
}
},
"chromeOptions": [],
Expand Down

0 comments on commit ca5d24e

Please sign in to comment.