-
Notifications
You must be signed in to change notification settings - Fork 128
/
ExecutingTestsOnWindowsAzure4.ps1
19 lines (12 loc) · 1.22 KB
/
ExecutingTestsOnWindowsAzure4.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
echo '********************************************CloudProviderCrossBrowser tests********************************************'
echo '********************************************BrowserStack tests********************************************'
$vstest = (Resolve-Path "D:\a\_temp\VsTest\Microsoft.TestPlatform*\tools\net*\Common*\IDE\Extensions\TestPlatform\vstest.console.exe").ToString()
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.CloudProviderCrossBrowser\bin\Release\net472" "Ocaramba.Tests.CloudProviderCrossBrowser.dll.config" "//appSettings" "RemoteWebDriverHub" "https://$($env:MAPPED_ENV_BROWSERSTACKUSER):$($env:MAPPED_ENV_BROWSERSTACKKEY)@hub-cloud.browserstack.com/wd/hub"
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.CloudProviderCrossBrowser\bin\Release\net472" "Ocaramba.Tests.CloudProviderCrossBrowser.dll.config" "//DriverCapabilities" "buildName" "Ocaramba.Tests.BrowserStackCrossBrowser$($env:BuildVersion)" -logValues
& $vstest .\Ocaramba.Tests.CloudProviderCrossBrowser\bin\Release\net472\Ocaramba.Tests.CloudProviderCrossBrowser.dll `
--logger:"trx;LogFileName=Ocaramba.Tests.BrowserStack.xml"
if($lastexitcode -ne 0)
{
echo 'lastexitcode' $lastexitcode
}
exit 0