-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathReadme.txt
44 lines (31 loc) · 2.23 KB
/
Readme.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
Hello there !
Below are the Key features of the framework :
1- Compatability with different browsers:
Conftest.py file has addoption hook that provides you the advantage to execute the test cases based on the browser of your choice
(Firefox & Chrome), As chrome is set as default, Hence if you don't provide any browser it will by default use firefox
Synatx to run : python -m pytest --browser firefox
2- Fixture used for BrowserSetUp and BrowserTearDown Method :
conftest.py file has the fixture test_set Up, Hence all you need is to include this fixture in your test , as this fixture is under
conftest.py hence there is no need to import this file.
3- Screenshot attachment in reports :
when you execute below allure commands to generate report, you will have the screenshot attached to your allure report
commands :python -m pytest --browser firefox --alluredir Reports
Allure serve Reports
4- Test wise screenshots saving functionality:
In case you need to validate snapshots manually, Here you will get them in dedicated screenshot folder mapped to your testcase in
sequential order
5- Parallel testing supported :
This framework supports parallerl testing as well, So in case you want to execute test in less time use below command
command : py.test -n 3 --dist=loadscope
In case you want to execute this framework on your local machine - I have listed the requirements with version under Requirements.txt file,
Please execute command from your command line to install the libraries.
command : pip install -r Requirements
###########################################################################################################
Implemented markers for grouping of test @pytest.mark.smoke and same has been registered under ini file
Below is the command to execute test via markers :
pytest -m smoke : To execute smoke test case only
pytest -m "not smoke" : To execute testcase that are not smoke
#############################################################################################################
Incase of any query/concerns/ suggestions - Please contact me on - [email protected]
=======
Inorder to install requirements - pip install -r Requirements