Skip to content

amit050994/Coverwhale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Coverwhale-Test-Automation

Coding Language - Java

Framework - Data-Driven Framework

Selenium test cases for Cover Whale repo

Project Structure:

  1. All the test case files are located under "src/test/java/testcases". You will find separate test case file for each module / functionality. (e.g. Login tests, Home page tests etc...)
  2. DOM elements / WebElements should be defined under "src/main/java/pages" folder.
  3. Configuration file "config.properties" in "src/main/java/config" folder contains all the configuration details like execution email details, admin user, password, environment execution URL etc... which are used in automation./
  4. Utilities folder - "src/main/java/utilities" has code / files for Emailing the report (Emailer.java) and TestListner etc...
  5. Execution reports and fail step screenshot are saved under "Reports" and "Reports/Screenshots" folder respectively.
  6. "Test_Case_Steps.xslx" file available under "src/test/java" contains manual steps for the scenarios covered in automation suite/ respective test case file.

Steps to Setup Project on your local:

  1. Download and install Java SDK 8
  2. Download and install Intellij Community edition from https://www.jetbrains.com/idea/download/
  3. Download Apache Maven and extract zip file to specific folder.
  4. Follow the steps to ensure all the system environment variables are setup correctly.
  5. https://www.tutorialspoint.com/maven/maven_environment_setup.htm
  6. Download and install Git
  7. Clone the Git repository - {repo}to local folder.
  8. Open command prompt and navigate to directory where project is cloned and run following command:
  9. a. Mvn clean
  10. Wait till it completes the process and shows “Build Success” status.
  11. Open the project in Intellij
  12. Navigate to src\test\java\testcases\ and open any test case file.
  13. image

  14. You can run entire test suite / test case from Intellij. OR using maven command “mvn clean test” from command prompt.
  15. After execution is complete, you should see the test execution report in Reports folder.
  16. Open the TestReport.html in Chrome browser to see the result.
  17. ![image](https://user-images.githubusercontent.com/77983442/111899801-af6d6480-8a54-11eb-9815-708a6cf7793f.png)

Code Checkin Process:

  • Take Git pull from master (this is to make sure you have latest code in your local)
  • Switch to local branch and merge code
  • Now Update your automation code to your local branch
  • Move code to repo and create PR
  • Verify your PR does not have any conflicts before mergering PR to master
  • About

    No description, website, or topics provided.

    Resources

    Stars

    0 stars

    Watchers

    1 watching

    Forks

    Releases

    No releases published

    Packages

     
     
     

    Contributors

    Languages