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: README.md
+27-14
Original file line number
Diff line number
Diff line change
@@ -18,32 +18,41 @@ Getting Started with Appium tests in NUnit on BrowserStack devices couldn't be e
18
18
19
19
### **Run first test :**
20
20
21
-
-Switch to `appium_dotnet_driver_4_examples`(or `appium_dotnet_driver_3_examples`) under `android` or `ios` directory
21
+
-Open the project in Visual Studio by opening `nunit-appium-app-browserStack.sln` file
22
22
23
-
-Open the project in Visual Studio by opening `android.sln` or `ios.sln` file
23
+
-Go to `android` or `ios` directory
24
24
25
-
-Follow the steps outlined in the documentation to run your first test - [Get Started with your first test on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/c-sharp/nunit)
25
+
-If you have uploaded your app then add the app id to the `browserstack.yml` config file, or you can directly specify the path to your app in the `browserstack.yml` file.
26
26
27
-
### **Speed up test execution with parallel testing :**
27
+
- Run `dotnet test --filter "Category=sample-test"`
28
28
29
-
-Switch to `appium_dotnet_driver_4_examples`(or `appium_dotnet_driver_3_examples`) under `android` or `ios` directory
29
+
-You can access the test execution results, and debugging information such as video recording, network logs on [App Automate dashboard](https://app-automate.browserstack.com/dashboard)
30
30
31
-
- Open the project in Visual Studio by opening `android.sln`or `ios.sln` file
31
+
### **Use Local testing for apps that access resources hosted in development or testing environments :**
32
32
33
-
-Follow the steps outlined in the documentation to run parallel tests - [Get Started with Parallel testing on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/c-sharp/nunit/parallelize-tests)
33
+
-Open the project in Visual Studio by opening `nunit-appium-app-browserStack.sln` file
34
34
35
-
### **Use Local testing for apps that access resources hosted in development or testing environments :**
35
+
- Go to `android` or `ios` directory
36
+
37
+
- Ensure that `browserstackLocal` capability is set to `true` in the `browserstack.yml` file
36
38
37
-
-Switch to `appium_dotnet_driver_4_examples`(or `appium_dotnet_driver_3_examples`) under `android` or `ios` directory
39
+
-If you have uploaded your app then add the app id to the `browserstack.yml` config file, or you can directly specify the path to your app in the `browserstack.yml` file.
38
40
39
-
-Open the project in Visual Studio by opening `android.sln` or `ios.sln` file
41
+
-Run `dotnet test --filter "Category=sample-local-test"`
40
42
41
-
-Follow the steps outlined in the documentation to run local tests - [Get Started with Local testing on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/c-sharp/nunit/local-testing)
43
+
-You can access the test execution results, and debugging information such as video recording, network logs on [App Automate dashboard](https://app-automate.browserstack.com/dashboard)
42
44
43
-
**Note**: If you are running Local test on Mac, you need to download and run the BrowserStack Local binary before starting the test:
45
+
### **Integrate your test suite**
46
+
This repository uses the BrowserStack SDK to run tests on BrowserStack. Follow the steps below to install the SDK in your test suite and run tests on BrowserStack:
44
47
45
-
1. Download BrowserStack Local binary for mac: [OS X (10.7 and above)](https://www.browserstack.com/browserstack-local/BrowserStackLocal-darwin-x64.zip)
46
-
2. Switch to the directory where binary is downloaded and run using following command `./BrowserStackLocal --key <YOUR_ACCESS_KEY>`
48
+
- Create sample browserstack.yml file with the browserstack related capabilities with your BrowserStack Username and Access Key and place it in your root folder.
49
+
- Add nuget library BrowserStack.TestAdapter
50
+
```sh
51
+
dotnet add BrowserStack.TestAdapter
52
+
```
53
+
- Build project dotnet build
54
+
55
+
--
47
56
48
57
## Integration with other CSharp frameworks
49
58
@@ -53,6 +62,8 @@ For other CSharp frameworks samples, refer to following repositories :
53
62
54
63
Note: For other test frameworks supported by App-Automate refer our [Developer documentation](https://www.browserstack.com/docs/)
55
64
65
+
--
66
+
56
67
## Troubleshooting
57
68
58
69
- In case `Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json'` issue is encountered while running a Local test on Windows, please follow the these steps to resolve it :
@@ -63,6 +74,8 @@ Note: For other test frameworks supported by App-Automate refer our [Developer d
63
74
64
75
- Then run `update-package Newtonsoft.Json` in the same console
65
76
77
+
--
78
+
66
79
## Getting Help
67
80
68
81
If you are running into any issues or have any queries, please check [Browserstack Support page](https://www.browserstack.com/support/app-automate) or [get in touch with us](https://www.browserstack.com/contact?ref=help).
0 commit comments