Posts

Showing posts from March, 2022

Setup pytest on windows pc

Image
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"\

Set java home env variable on mac

1) Install jdk from below link https://www.oracle.com/java/technologies/downloads/#java8 2) select  x64 DMG Installer version for intel laptops 3) Open terminal and type java-version 4)  https://www.youtube.com/watch?v=0cGNaFRbsCo&t=254s