Skip to content

Commit 84d61a4

Browse files
committed
Updated README
1 parent cf33b90 commit 84d61a4

File tree

1 file changed

+39
-19
lines changed

1 file changed

+39
-19
lines changed

README.md

+39-19
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,52 @@
1-
# gsauto-test-task
1+
# Test Code Tasks
22

3-
## Test Code Tasks
3+
## Getting Started
44

5-
1. Clone this project
6-
2. Open the project in IntelliJ.
7-
3. Follow the task instructions below.
8-
4. Allow up to **90 minutes** for all three tasks.
9-
5. Zip up your project and attach it to this page.
5+
1. **Fork this Repository:**
6+
- Navigate to the repository page on GitHub: https://github.com/gymshark/gsauto-test-code-task
7+
- Click on the `Fork` button at the top right of the page to create your own copy of the repository.
108

11-
## Task 1: Cucumber FixMe
9+
2. **Clone Your Fork:**
10+
- Open your terminal or Git Bash.
11+
- Clone your forked repository to your local machine using the following command (replace this with your username and forked repo, e.g. https://github.com/owynowyn/gsauto-test-code-task):
12+
```sh
13+
git clone https://github.com/your-username/your-forked-repo.git
14+
```
1215

13-
- The test with the tag `@FixMe` used to work but has broken. Fix this test so it runs.
14-
- Remove the `@FixMe` tag once the test is fixed.
15-
- Change the test so the search term is a parameter in the Gherkin scenario.
16+
3. **Open the Project in IntelliJ:**
17+
- Open IntelliJ IDEA.
18+
- Navigate to `File > Open` and select the cloned repository directory.
19+
20+
4. **Follow the Task Instructions Below:**
21+
- Complete the tasks as outlined in the instructions below.
1622

17-
## Task 2: Write a New Test
23+
5. **Allow up to 90 Minutes for All Three Tasks:**
24+
- Ensure you complete all tasks within the allocated time.
1825

19-
Create a new test that takes the following steps:
26+
6. **Commit and Push Your Changes:**
27+
- After completing the tasks, commit and push your changes to your local repository.
2028

21-
1. Go to [Google UK](https://www.google.co.uk).
22-
2. Type in the search term "BBC".
23-
3. Click on "I’m Feeling Lucky".
24-
4. Verify that the browser has been redirected to a URL containing the search term.
29+
7. **Create a Pull Request:**
30+
- Go to your forked repository on GitHub.
31+
- Click on the `Compare & pull request` button to submit your changes to the original repository.
32+
- Provide a meaningful description of the changes you made and submit the pull request.
2533

26-
Ensure this is written with behavioral steps, rather than procedural steps as listed above.
34+
## Task Instructions
35+
36+
### Task 1: Cucumber FixMe
37+
- The test with the tag `@FixMe` used to work but has broken. Fix this test so it runs.
38+
- Remove the `@FixMe` tag once the test is fixed.
39+
- Change the test so the search term is a parameter in the Gherkin scenario.
2740

28-
## Task 3: Refactor Test Code
41+
### Task 2: Write a New Test
42+
- Create a new test that takes the following steps:
43+
1. Go to Google UK.
44+
2. Type in the search term "BBC".
45+
3. Click on "I’m Feeling Lucky".
46+
4. Verify that the browser has been redirected to a URL containing the search term.
47+
- Ensure this is written with behavioral steps, rather than procedural steps as listed above.
2948

49+
### Task 3: Refactor Test Code
3050
- Improve both tests by creating a Page Object for the Google Homepage.
3151
- Wrap up the wait and Selenium logic into reusable methods.
3252
- Tag both tests to assign the test a “Smoke” test.

0 commit comments

Comments
 (0)