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
+20-21Lines changed: 20 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@
3
3
[](https://github.com/lqthang2204/BDDDevicesAutomation/commits/main)
4
4
# BDDDevicesAutomation
5
5
6
-
### About this project
6
+
### Overview
7
7
8
-
*The project holds all automation tests for multi-project by browser and mobile (android and ios)
8
+
The BDDDevicesAutomation repository is designed for automating tests using Behavior-Driven Development (BDD) with Behave and Selenium, covering web, mobile, and API testing. It’s ideal for developers and testers working on multi-project automation, especially for Chrome, with reusable steps for web UI actions and verifications.
9
9
10
10
### Why do I need this project?
11
11
@@ -14,34 +14,33 @@ This project is for chrome
14
14
* This project will provide tests specific to performing various browser UI actions and verifications.
15
15
* The project will provide the use of the same steps for Web.
16
16
17
-
### When and why would I need to modify this project?
17
+
### Getting Started
18
+
To use the repository, clone it from GitHub, set up a virtual environment, and install dependencies with pip install -r requirements.txt. Ensure Python 3.x and necessary drivers for Selenium are installed. For IDE setup, consider PyCharm, with guidance at JetBrains PyCharm Download Page.
18
19
19
-
Any QA or Developer can contribute to this project for valid acceptable scenarios as below:
20
20
21
-
. Add a new test or feature file of clubbing various tests.
22
-
. There is an error with an existing test and needs to be updated.
23
-
. There is missing documentation.
24
-
. Any other case that should be brought up to QA leads.
25
-
26
-
### How do I set up Pychamr?
21
+
### How do I get the code, afresh?
27
22
28
-
Review the https://www.jetbrains.com/idea/download/#section=windows, which addresses
29
-
questions such as:
23
+
. You can download code at https://github.com/lqthang2204/BDDDevicesAutomation
24
+
. Clone this project to a working folder on your local machine.
25
+
Follow https://github.com/lqthang2204/BDDDevicesAutomation for cloning a repository.
30
26
31
-
. How do I import the code into Pycharm?
32
-
. How do I check out and change GIT branches?
33
-
. What are environment variables and how to configure them for running tests?
27
+
### Running Tests
28
+
Run tests using commands like python project_runner.py run -fd 'features/scenarios/web' -tg '{@web}' -fk 3 -sg SIT -pl WEB -ps scenario. Parallel testing is supported with behavex -t @regression --parallel-processes 2, and remote testing with Saucelabs is possible.
34
29
35
-
### How do I get the code, afresh?
30
+
### Prerequisites
31
+
Before diving in, ensure the following are installed and configured:
36
32
37
-
. You can download code at https://github.com/lqthang2204/Selenium-with-python-behave
38
-
. Clone this project to a working folder on your local machine.
39
-
Follow https://github.com/lqthang2204/Selenium-with-python-behave for cloning a repository.
33
+
* Python: Version 3.x, with 3.9 or higher recommended for compatibility.
34
+
* Behave: The BDD framework for Python, essential for running feature files.
35
+
* Selenium: Required for browser and device automation, particularly for web and mobile testing.
36
+
* Additional Dependencies: Install any other packages listed in the requirements.txt file, which can be done via:
40
37
41
-
### Test execution
38
+
**pip install -r requirements.txt**
39
+
* Device Access: For mobile testing, ensure access to emulators or physical devices, along with necessary drivers.
40
+
* IDE: An Integrated Development Environment like PyCharm or VS Code is recommended for development, with setup guidance available at JetBrains PyCharm Download Page.
42
41
43
42
#### How do I run an automation test?
44
-
43
+
The repository provides several commands for test execution, detailed in the table above. For example:
45
44
* Recommended VM options :
46
45
* Recommended Command for CLI
47
46
* HELP : ```python project_runner.py run --help```
0 commit comments