You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: playwright-dotnet/PlaywrightParallelTest.cs
+27-66Lines changed: 27 additions & 66 deletions
Original file line number
Diff line number
Diff line change
@@ -13,14 +13,14 @@ public static async Task main(string[] args)
13
13
try{
14
14
// allowed browsers are `chrome`, `edge`, `playwright-chromium`, `playwright-firefox` and `playwright-webkit`
15
15
// browser_version capability is valid only for branded `chrome` and `edge` browsers and you can specify any browser version like `latest`, `latest-beta`, `latest-1` and so on.
@@ -110,13 +65,19 @@ public static async Task Executetestwithcaps(string capabilities)
110
65
if(title=="BrowserStack - Google Search")
111
66
{
112
67
// following line of code is responsible for marking the status of the test on BrowserStack as 'passed'. You can use this code in your after hook after each test
awaitMarkTestStatus("failed","Title did not match",page);
114
72
}
115
73
}
116
-
catch(Exceptione){
117
-
Console.WriteLine(e);
118
-
awaitpage.EvaluateAsync("_ => {}","browserstack_executor: {\"action\": \"setSessionStatus\", \"arguments\": {\"status\":\"failed\", \"reason\": \" Title did not match\"}}");
Copy file name to clipboardExpand all lines: playwright-dotnet/PlaywrightSingleTest.cs
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,12 +33,19 @@ public static async Task main(string[] args)
33
33
if(title=="BrowserStack - Google Search")
34
34
{
35
35
// following line of code is responsible for marking the status of the test on BrowserStack as 'passed'. You can use this code in your after hook after each test
awaitMarkTestStatus("failed","Title did not match",page);
37
40
}
38
41
}
39
-
catch{
40
-
awaitpage.EvaluateAsync("_ => {}","browserstack_executor: {\"action\": \"setSessionStatus\", \"arguments\": {\"status\":\"failed\", \"reason\": \" Title did not match\"}}");
*[Windows (XP and above)](https://www.browserstack.com/browserstack-local/BrowserStackLocal-win32.zip)
26
-
2. Once you have downloaded and unzipped the file, you can initiate the binary by running the command: `./BrowserStackLocal --key YOUR_ACCESS_KEY`
27
-
3. Once you see the terminal say "[SUCCESS]" You can now access your local server(s) in our remote browser”, your local testing connection is considered established.
28
-
4. You can then run the sample Local test using `dotnet run local`
19
+
**Using Command-line Interface**
20
+
1. You have to download the BrowserStack Local binary from the links below (depending on your environment):
21
+
*[OS X (10.7 and above)](https://www.browserstack.com/browserstack-local/BrowserStackLocal-darwin-x64.zip)
*[Windows (XP and above)](https://www.browserstack.com/browserstack-local/BrowserStackLocal-win32.zip)
25
+
2. Once you have downloaded and unzipped the file, you can initiate the binary by running the command: `./BrowserStackLocal --key YOUR_ACCESS_KEY`
26
+
3. Once you see the terminal say "[SUCCESS]" You can now access your local server(s) in our remote browser”, your local testing connection is considered established.
27
+
4. You can then run the sample Local test using `dotnet run local`
29
28
30
29
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
@@ -33,15 +33,20 @@ public static void main(String[] args) {
33
33
34
34
if (title.equals("BrowserStack - Google Search")) {
35
35
// following line of code is responsible for marking the status of the test on BrowserStack as 'passed'. You can use this code in your after hook after each test
0 commit comments