Skip to content

Commit 5032586

Browse files
author
John Hill
committed
First upload
1 parent 34ddb41 commit 5032586

File tree

103 files changed

+1596
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1596
-0
lines changed

.gitignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.project
2+
*.DS_Store
3+
*.idea
4+
/*.log
5+
/nightwatch.json
6+
node_modules
7+
npm-debug.log
8+
lib-cov
9+
coverage.html
10+
selenium-debug.log
11+
phantomjsdriver.log
12+
tests_output
13+
reports
14+
*~
15+
\#*
16+
\.#*
17+
output
18+
/test/hooks_output
19+
/bin/geckodriver*
20+
/coverage/
21+
/.nyc_output/
22+
screenshot.png

nightwatch.conf.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
module.exports = {
2+
"src_folders" : ["tests"],
3+
"output_folder" : "reports",
4+
"test_workers": { "enabled": true, "workers": 100 },
5+
"test_settings" : {
6+
"default" : {
7+
"selenium" : {
8+
"start_process" : true,
9+
"server_path" : "./node_modules/selenium-server-standalone-jar/jar/selenium-server-standalone-3.4.0.jar",
10+
"log_path" : "logs",
11+
"host" : "127.0.0.1",
12+
"port" : 4444,
13+
"cli_args" : {
14+
"webdriver.chrome.driver" : "./node_modules/chromedriver/bin/chromedriver"
15+
}
16+
},
17+
"launch_url" : "http://localhost",
18+
"selenium_port" : 4444,
19+
"selenium_host" : "localhost",
20+
"silent": true,
21+
"screenshots" : {
22+
"enabled" : false,
23+
"path" : ""
24+
},
25+
"desiredCapabilities": {
26+
"browserName": "chrome",
27+
"javascriptEnabled": true,
28+
"acceptSslCerts": true
29+
}
30+
},
31+
"serial" : {
32+
"test_workers": { "enabled": false },
33+
},
34+
"zalenium" : {
35+
"test_workers": { "enabled": true, "workers": 100 },
36+
"selenium_host" : "externalhost",
37+
"selenium_port" : 4444,
38+
"default_path_prefix" : '/wd/hub'
39+
}
40+
}
41+
}

package.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "selenium-scaling-demo",
3+
"version": "0.0.1",
4+
"description": "Selenium Scaling Demo",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "nightwatch",
8+
"remote100": "nightwatch --env zalenium",
9+
"remote-single": "nightwatch --env zalenium --filter google-search01*",
10+
"local-single": "nightwatch --filter google-search01*",
11+
"local10-serial": "nightwatch --env serial --filter google-search0*",
12+
"local10" : "nightwatch --filter google-search0*",
13+
"remote10" : "nightwatch --env zalenium --filter google-search0*"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/unlikelyzero/scaling-selenium-demo.git"
18+
},
19+
"author": "unlikelyzero",
20+
"homepage": "https://github.com/unlikelyzero/scaling-selenium-demo#readme",
21+
"dependencies": {
22+
"nightwatch": "^0.9.19"
23+
},
24+
"devDependencies": {
25+
"chromedriver": "^2.46.0"
26+
},
27+
"keywords": [
28+
"nightwatch",
29+
"testing"
30+
]
31+
}
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
//.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "google")
10+
.click('input[name="q"]')
11+
.click('input[name="btnK"]');
12+
},
13+
14+
after: (browser) => {
15+
browser.end();
16+
}
17+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
'Go To google': (browser) => {
3+
browser
4+
.init()
5+
.url('https://www.google.com')
6+
.waitForElementVisible('body', 100)
7+
.pause(5000)
8+
.click('input[name="q"]')
9+
.setValue('input[name="q"]', "")
10+
},
11+
12+
after: (browser) => {
13+
browser.end();
14+
}
15+
};

0 commit comments

Comments
 (0)