Skip to content

RuslanSheyko/TestProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

====================================== HOW TO SET UP A PROJECT ========= ===================================

Required tools:

================= Running tests =====================

1) Open IDE
2) Open project
    There are two ways to run tests:
    1) Change the line # selenium.grid.host = http: // localhost: 4444 / wd / hub in the file /src/main/resources/browser.properties and comment out the line selenium.grid.host = http: // shub-crm.ritperm.rt.ru:4444/wd/hub
        In the IDEAS terminal, enter "mvn clean test -Pchrome-remote" - will run on the local node
        -P - select a profile, then write the id of the maven profile

        Depending on the profile, tests will run in different conditions
        options - chrome-local - locally on Chrome without selenium grid (default if you don't enter -PprofileId)
                    firefox-local - locally on Firefox without selenium grid

    2) Click pkm on src / test / resources / testng.xml and click Run src / test / resources / testng.xml ...
        In this case, tests will run on firefox locally

================= View Allure reports =====================

1) Install Allure
2) In the terminal, go to the target folder of the project
3) Run: allure serve -h localhost -p 9999

================= Project structure =====================

src - project code main - directory for the kernel java - code directory base - project core driver - all you need to initialize the driver elements - classes for representing actions on web elements listeners - testNG listeners util - miscellaneous utilities, files with constants, property reader, parsers waiters - custom waiters pages - folders with Page-Object classes resources - resources for the bark test - directory for the test java - classes with tests ui - tests resources - test resources target - files where files fall after the project build allure-results - files for generating the Allure report .gitignore - file with exceptions that does not end up in the turnips .gitlab-ci.yml - CI configuration file pom.xml - file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages