Skip to content

Ciscoadmin/ForTesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For Testing Purpose only

Easy steps to start :

  • Clone repository :
 $ git clone https://github.com/ezaichuk/Demo_Project.git
  • Create your own branch and switch to it:
$ git checkout -b <your_branch_name>
  • Open project in Intellij Idea
  • Click View-> Tool windows -> Maven Projects

Select browser and environment in profiles. Then choose "test" and click Green Arrow under Maven Projects window. It will run tests on Firefox browser using Selenium grid on your own host.

MVN profiles

  • Which tests will be executed ?

Open /src/test/resources/testng.xml and edit classes section

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Tests" verbose="5">
  <test name="Main Page tests">      <!-- THIS IS TEST NAME, CREATE YOUR OWN-->
    <classes>                        <!-- HERE ARE LIST OF TEST CLASSES THAT WILL BE EXECUTED -->
      <class name="test.MainPage.LoginAsViewerAndLogout"/>
    </classes>
  </test>  
</suite>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published