Skip to content

Commit 4d92204

Browse files
Merge pull request #37 from hurricanemark/Phase2-BaselineToSeriousWorks
Phase2 baseline to serious works
2 parents 2b2f113 + 9c96e45 commit 4d92204

File tree

4 files changed

+79
-2
lines changed

4 files changed

+79
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY . .
1414
ENV NODE_ENV=awsdeploy
1515
ENV PORT=8080
1616
ENV WEATHERBIT_URI=https://api.weatherbit.io/v2.0/
17-
ENV WEATHERBIT_KEY=ZTg4ZTFhODA5NmNkNDg5N2I3OWIyMzBhOWM0OWIyNDM=
17+
ENV WEATHERBIT_KEY=U2FsdGVkX18HMV5UUT9rJN76hOtIHDw1bH0beQYWH8a6E7uzKqskdgHvc6Nq2lO6O+GAb2vrcL+X8ZDqcGPuLw==
1818

1919
EXPOSE 8080
2020

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,16 @@ Cyclic deploys full stack NodeJS apps on AWS infrastructure directly from GitHub
190190
Please do not abuse this live website below. Thank you!
191191
[Live demo](https://techrolemiweather.cyclic.app/about)
192192

193-
**Recommend Cylic** https://app.cyclic.sh/#/join/hurricanemark
193+
**Recommend Cylic** https://app.cyclic.sh/#/join/hurricanemark
194+
195+
## Test Automation
196+
197+
[Selenium](https://www.selenium.dev/documentation/) is an opensource providing QA testing environment best fit for test automation. Selenium supports multiple languages such as Java, Python,CSharp, Ruby, Javascript, and Kotlin.
198+
199+
We will choose [Selenium IDE chrome extension](https://chrome.google.com/webstore/detail/selenium-ide/mooikfkahbdckldjjndioackbalphokd) to configure and run a simple user-interface automation test project.
200+
201+
1. On the Chrome browser, download selenium chrome extension.
202+
203+
2. Write test cases as follow and click `Run all tests`:
204+
205+
![UI-Automation](./public/SeleniumIDEAutomation.PNG)

public/SeleniumIDEAutomation.PNG

46.8 KB
Loading
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"id": "aeab0038-9054-48cb-95f2-122a75adad4a",
3+
"version": "2.0",
4+
"name": "TestWeatherBitApp",
5+
"url": "localhost:1111",
6+
"tests": [{
7+
"id": "d23d883e-bf88-47ce-833d-ce98f95a5d5a",
8+
"name": "Untitled",
9+
"commands": [{
10+
"id": "fdf7489e-1db8-40b3-8b27-622dc7f25190",
11+
"comment": "",
12+
"command": "echo",
13+
"target": "Selenium IDE Test Preparation Target: TechRolEmi Weather APP",
14+
"targets": [],
15+
"value": "Selenium IDE Test Preparation Target: TechRolEmi Weather APP"
16+
}, {
17+
"id": "4f303c9a-bc59-4a79-be04-843c9594505a",
18+
"comment": "Test open browser URL: https://techrolemiweather.cyclic.app/about",
19+
"command": "open",
20+
"target": "https://techrolemiweather.cyclic.app/about",
21+
"targets": [],
22+
"value": ""
23+
}, {
24+
"id": "7d00be3c-88a0-4020-80a2-5f73f0fc2166",
25+
"comment": "Test open browser URL: https://techrolemiweather.cyclic.app/weatherbit",
26+
"command": "open",
27+
"target": "https://techrolemiweather.cyclic.app/weatherbit",
28+
"targets": [],
29+
"value": ""
30+
}, {
31+
"id": "364172e9-9e27-40ea-98b4-1f0d12c217f2",
32+
"comment": "Test input text area",
33+
"command": "type",
34+
"target": "name=locale",
35+
"targets": [
36+
["name=locale", "name"],
37+
["css=.ghost-input", "css:finder"],
38+
["xpath=//input[@name='locale']", "xpath:attributes"],
39+
["xpath=//fieldset/form/input", "xpath:position"]
40+
],
41+
"value": "New York, NY"
42+
}, {
43+
"id": "72d25dbb-8f58-45fb-8acb-41a960c6225d",
44+
"comment": "Test submit button `Pinpoint Weather`",
45+
"command": "clickAt",
46+
"target": "css=.btn-sm",
47+
"targets": [
48+
["css=.btn-sm", "css:finder"],
49+
["xpath=//input[@value='Pinpoint Weather']", "xpath:attributes"],
50+
["xpath=//input[4]", "xpath:position"]
51+
],
52+
"value": ""
53+
}]
54+
}],
55+
"suites": [{
56+
"id": "f7d69008-2385-4c7f-807a-048eb4f1a883",
57+
"name": "Default Suite",
58+
"persistSession": false,
59+
"parallel": false,
60+
"timeout": 300,
61+
"tests": ["d23d883e-bf88-47ce-833d-ce98f95a5d5a"]
62+
}],
63+
"urls": ["localhost:1111"],
64+
"plugins": []
65+
}

0 commit comments

Comments
 (0)