using_SHAFT_ENGINE is a sample project to showcase how to get started using SHAFT_Engine, and how to use some of its rich features, while applying the best practices for Test Automation project design. For a full list of the Supported features that you can use or try out, please refer to this Read Me file.
- Simply import this project to your eclipse (or favorite JAVA IDE).
- Watch this simple 5-minute live-demo: https://drive.google.com/file/d/1NxBpObvbBHdMjL4tl7PlpRNi7U9lMfW8/view
- Make your own fork from the project
- You can refer to this sample tutorial on how to import your new project into your workspace: https://tools.jboss.org/documentation/howto/git_import_projects.html#clone_uri
- After your project is successfully imported, you can explore the file structure, and add your own tests or test suites as needed.
- Always use the latest version of SHAFT_Engine in your pom.xml file
- Refer to the published SHAFT_Engine javadocs for detailed information on the available functions/classes/packages https://mohabmohie.github.io/SHAFT_ENGINE/
- Refer to TestNG [https://testng.org/doc/documentation-main.html] and Allure Reporting [https://docs.qameta.io/allure/] documentation for using annotations
- As of the latest version of SHAFT_Engine '4.0.20200220-beta' you can now use IntelliJ in addition to Eclipse to manage your test project.
- After checking out the project to your IntelliJ you may face an exception that prevents tests execution.
- In that case you need to add the SHAFT_Engine custom listeners to your TestNG execution template, as IntelliJ doesn't natively inherit this list from the pom.xml file.
- Here are the steps you need to follow:
- This is the error that you may see
- In that case you need to Edit your Run/Debug configuration
- Navigate to Templates > TestNG > Configuration > Listeners
- Type com.shaft.tools.* into your search box to find the required listeners and add them one by one
- This is the desired output for your listeners configuration
- Success!