Skip to content
/ using_SHAFT_Engine Public template

A Template Repository for using SHAFT_Engine

License

Notifications You must be signed in to change notification settings

ShaftHQ/using_SHAFT_Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Template for using SHAFT_Engine

SHAFT_ENGINE

I. Quick Start Guide 🏃

Step 1: Setting up your project

  • Click the blue button above that says "Use this template" > "Create a new repository"
  • From your new repository click the blue button that says "<> Code" > "Open with GitHub Desktop"
  • From your GitHub Desktop click the button that says "Open in JetBrains IntelliJ Idea Community Edition"
  • With the latest SHAFT_Engine version, the engine will be able to configure itself in TestNG or JUnit mode automatically. You will not need to add any listeners anymore.
  • If you're using Cucumber, due to a known issue with IntelliJ you need to edit your run configuration templates before running your feature files by following these steps:
    • Open 'Edit Run/Debug Configurations' dialog > Edit Configurations... > Edit configuration templates...
    • Select Cucumber Java > Program Arguments > and add this argument:
      --plugin --plugin com.shaft.listeners.CucumberFeatureListener
    • After saving the changes, remember to delete any old runs you may have triggered by mistake before adding the needed config.

Step 2: Running some Tests

  • Navigate to the module that you want to play with. For example GUI_Web
  • Navigate to any test class. For example src/test/java/TestPackage/TestClass.java
  • Press the green play button next to the class name to run the entire class, or next to a test method to run only that method.
  • Test execution will begin, and you'll see the browser opening and the test running.
  • The Test execution report will open automatically in your default web browser after the test run is completed.

Allure Report

II. What's next?

User Guide

  • Learn more about using SHAFT_Engine from the 👤 User Guide and 📚 Javadocs.
  • Join our GitHub Repo stars to get notified by email when a new release is pushed out.
  • After upgrading your Engine it is sometimes recommended to delete the properties folder src\main\resources\properties and allow SHAFT to regenerate the defaults by running any test method.

CI/CD & DevOps

  • This template comes preloaded with some Selenium grid 4 powered CI/CD pipelines to get you started!
  • Navigate to "Actions" and then select "Desktop Browser Tests" from the side menu
  • Click "Run workflow" and confirm your choice.
  • You will notice that the pipeline has started building, and you can download the execution reports once the execution is completed.

GitHub Actions

Stop Reinventing the wheel! Start using SHAFT!

About

A Template Repository for using SHAFT_Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages