If the automation project includes JUnit + Java (with Maven) structure, then configure the Maven dependency in the project as described below.
...
Code Block |
---|
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.0</version> </plugin> <plugin> <groupId>com.qmetry</groupId> <artifactId>automation</artifactId> <version>2.0.5<6</version> <executions> <execution> <phase>test</phase> <goals> <goal>JUnitFileUpload</goal> </goals> </execution> </executions> </plugin> </plugins> </build> |
Please refer to View Import Results using REST API section to view all possible request parameters.
Step 2: Add the following to the <pluginRepositories> block in pom.xml like:
Code Block |
---|
<pluginRepositories> <pluginRepository> <id>qmetrytestmanager-mvn-repo</id> <name>QMetry Test Manager Maven Repository</name> <url>https://raw.github.com/qmetry/qtm4j-maven-uploader/mvn-repo/</url> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </releases> </pluginRepository> </pluginRepositories> |
...