-
Notifications
You must be signed in to change notification settings - Fork 1
/
Help.txt
78 lines (70 loc) · 2.97 KB
/
Help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
How to execute using NUnit Console:
1. open new command prompt console.
2. Build the project in Debug/Release mode.
3. Navigate to the Debug/Release folder of the project.
4. Type the command: nunit3-console.exe WebTestingFramework.dll --workers=8
nunit3-console.exe <Output_Tests_Library1.dll,[Output_Tests_Library2.dll],[Output_Tests_Library3.dll],...> --workers=<number of threads to use>
Known Issues:
If the tests dont show up in the test explorer:
1. Delete this folder: C:\Users\local_username\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnit3TestAdapter.3.x.x
2. Restart Visual Studio
When the tests are run using NUnit3 console runner, the below error message is thrown. But all the tests get passed and no issues.
1) Invalid : WebTestingFramework.Base.TestsBase
No suitable constructor was found
Pre-requisites:
Environment Variables:
1. TestEnvironment --> the environment you want to run your tests on. This value should match the value in database Configurations collection Environment value.
2. SL_AccessKey --> The Sauce Labs access key to be entered as the value. If UseSauceLabs is true.
3. SL_Username --> The Sauce Labs Username to be entered as the value. If UseSauceLabs is true.
4. BuildId --> The Build Id which should be displayed on SauceLabs Builds section. This will be useful for CI/CD tools. Ex.: TeamCity
1. Download & Install MongoDB.
2. Create a Database: TestAutomation
3. Create a Collection: Configurations
4. Insert the below document per environment:
{
"Environment" : "CI",
"AppConfig" : {
"UseSauceLabs" : true,
"InitUrl" : "http://www.google.com/",
"ElementLoadWaitTime" : "240",
"SeleniumCommandWaitTime" : "240",
"SauceRemoteDriverUri" : "http://ondemand.saucelabs.com:80/wd/hub",
"SeleniumGridDriverUri" : "http://your_machine_name.domain.com:4444/wd/hub",
"UseSeleniumGrid" : false,
"OutputResultsToFile" : true,
"OutputResultsToConsole" : true,
"SL_Tunnel" : "SL_TunnelCI",
"BuildName" : "Build_CI",
//Add capabalities here as required. Ex: "name:value"
"Capabilities" : [
""
]
},
"Browsers" : [
{
"Browser" : "chrome",
"Version" : "64",
"Platform" : "Windows 10",
"IsEnabled" : true
},
{
"Browser" : "internet explorer",
"Version" : "11",
"Platform" : "Windows 10",
"IsEnabled" : true
},
{
"Browser" : "firefox",
"Version" : "58",
"Platform" : "Windows 10",
"IsEnabled" : true
},
{
"Browser" : "microsoftedge",
"Version" : "16",
"Platform" : "Windows 10",
"IsEnabled" : true
}
// In casse you need more browsers to run the tests add here. If you want to disable your tests running on specific browser, set the "IsEnabled" flag for that browser to "false".
]
}