diff --git a/api-test/README.md b/api-test/README.md index 599f6223..4ae18738 100644 --- a/api-test/README.md +++ b/api-test/README.md @@ -111,7 +111,12 @@ You can execute the test automation code using any of the following methods: 2. Run the automation test suite JAR file: ```sh - java -Dmodules=keymanager -Denv.user= -Denv.endpoint= -Denv.testLevel=smokeAndRegression -Xmx2G -jar apitest-keymanager-1.0.0-SNAPSHOT-jar-with-dependencies.jar + # Linux / macOS / Git Bash + java -Dmodules=keymanager -Denv.user= -Denv.endpoint= -Denv.testLevel=smokeAndRegression -Xmx2G -jar apitest-keymanager-*-jar-with-dependencies.jar + ``` + ```powershell + # Windows PowerShell (does not expand * for java, so resolve the file first) + java -Dmodules=keymanager -Denv.user= -Denv.endpoint= -Denv.testLevel=smokeAndRegression -Xmx2G -jar (Get-ChildItem apitest-keymanager-*-jar-with-dependencies.jar).Name ``` ### Using Maven @@ -191,7 +196,7 @@ This section describes the meaning of each column in the test report: - **env.user**: Replace `` with the appropriate environment name (e.g., `dev`, `qa`, etc.). - **env.endpoint**: The environment where the application under test is deployed. Replace `` with the correct base URL for the environment (e.g., `https://api-internal..mosip.net`). - **env.testLevel**: Set this to `smoke` to run only smoke test cases, or `smokeAndRegression` to run both smoke and regression tests. -- **jar**: Specify the name of the JAR file to execute. The version will change according to the development code version — for example, the current version is `apitest-keymanager-1.0.0-SNAPSHOT-jar-with-dependencies.jar`. +- **jar**: The JAR built in `target/`, named `apitest-keymanager--jar-with-dependencies.jar`, where `` is the `` in `pom.xml`. The `apitest-keymanager-*-jar-with-dependencies.jar` pattern above picks it up, so the command does not change when the version does. ### Running a subset of test cases diff --git a/api-test/pom.xml b/api-test/pom.xml index bcf3b70b..3c060552 100644 --- a/api-test/pom.xml +++ b/api-test/pom.xml @@ -76,7 +76,7 @@ 3.0.0 2.2.1 3.0.1 - apitest-keymanager-1.0.0-SNAPSHOT-jar-with-dependencies + ${project.artifactId}-${project.version}-jar-with-dependencies @@ -97,6 +97,7 @@ org.apache.maven.plugins maven-javadoc-plugin + ${maven.javadoc.version} attach-javadocs @@ -118,14 +119,6 @@ -Dfile.encoding=UTF-8 - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven.javadoc.version} - - none - - pl.project13.maven git-commit-id-plugin