Setup pytest on windows pc
1) Install python from python website~ 18~19 MB(python 2.7.15)
2) Open environment variables and add the path of python to the environment variables
3) Now copy path from python folder as given below and paste in the environment variables
User variables:-
C:\Python27\Scripts
C:\Python27\Lib
C:\Python27\libs
System Variables:-
C:\Python27
C:\Python27\DLLs
C:\Python27\Lib
C:\Python27\libs
C:\Python27\Scripts
4) open terminal and run command pip install pytest==4.6.11)
5) Now check pytest is present in the script folder
6) Now again open terminal and run command pip install objectpath as it is required to run the tests
7)Now run command pip install requests in terminal
8) Run the tests by running this command in terminal
D:\Work-space\portal-alpasso\api_tests> C:\Python27\Scripts\pytest.exe .\tests\test_ibl_license_operation.py -k "tests_e2e_operations_for_abl_v2_saas_license_create_check_operation_and_get_license"\
Comments
Post a Comment