Skip to main content

Setting up a new project

Now that you're hooked, here are two ways to set up a new sandbox and start experiencing SHAFT:

The easiest and most interactive way to create a new SHAFT project is using our Project Generator. This tool guides you through the project setup with a user-friendly interface.

The generator will help you:

  • Choose your project type and testing framework
  • Select dependencies and features
  • Configure your project settings
  • Generate a ready-to-use project structure
tip

If the generator doesn't load above, you can open it in a new tab.


Option 2: Maven Archetype

You can also set up a new SHAFT project using our TestNG Maven Archetype.

  • You can do that by following this lovely IntelliJ IDEA guide.

    • Before you press Create you'll need to add the archetype first by using this data
    GroupId: io.github.shafthq
    ArtifactId: testng-archetype
    Version: ${archetype.version}
    Replace
    • It should look something like this IntelliJ IDEA Archetype
  • Or you can do it manually by following these steps:

    1. Download the latest version of mvn
    2. Add it to your PATH variable
    3. Create a new directory for the project, and navigate to it.
    4. Open a Terminal window in the target directory and execute the below command.
    Generate a new SHAFT project
    mvn archetype:generate "-DarchetypeGroupId=io.github.shafthq" "-DarchetypeArtifactId=testng-archetype" "-DarchetypeVersion=${archetype.version}" "-DinteractiveMode=false" "-DgroupId=io.github.shafthq" "-DartifactId=using_SHAFT_Engine"
Replace
Customize

"-DgroupId=io.github.shafthq" and "-DartifactId=using_SHAFT_Engine" with the groupId and artifactId that you want to use for the new project.