Skip to content

MamdouhMansour/SHAFT_Mobile_Practice

Repository files navigation

using_SHAFT_ENGINE

SHAFT_ENGINE

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.

Running your first sample test:

  1. Simply import this project to your eclipse (or favorite JAVA IDE).
  2. Watch this simple 5-minute live-demo: https://drive.google.com/file/d/1NxBpObvbBHdMjL4tl7PlpRNi7U9lMfW8/view

Creating your own project based on using_SHAFT_ENGINE:

  1. Make your own fork from the project using_SHAFT_ENGINE
  2. Check out the Maven Projects from Git (File - Import - Maven -Check out Maven Projects from SCM) 2.1. On the window that is presented click the link "Find more SCM connectors in the m2e Marketplace" in the bottom right corner of the page. 2.2. Search for "m2e-egit" and install it, then restart and continue.
  3. After your project is successfully imported, you can explore the file structure, and add your own tests or test suites as needed.

Important Notes:

IntelliJ:

  • As 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 1 of 6
    • In that case you need to Edit your Run/Debug configuration 2 of 6
    • Navigate to Templates > TestNG > Configuration > Listeners 3 of 6
    • Type com.shaft.tools.* into your search box to find the required listeners and add them one by one 4 of 6
    • This is the desired output for your listeners configuration 5 of 6
    • Success! 6 of 6

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages