Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions api-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<env_name> -Denv.endpoint=<base_env> -Denv.testLevel=smokeAndRegression -Xmx2G -jar apitest-keymanager-1.0.0-SNAPSHOT-jar-with-dependencies.jar
# Linux / macOS / Git Bash
java -Dmodules=keymanager -Denv.user=<env_name> -Denv.endpoint=<base_env> -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=<env_name> -Denv.endpoint=<base_env> -Denv.testLevel=smokeAndRegression -Xmx2G -jar (Get-ChildItem apitest-keymanager-*-jar-with-dependencies.jar).Name
```

### Using Maven
Expand Down Expand Up @@ -191,7 +196,7 @@ This section describes the meaning of each column in the test report:
- **env.user**: Replace `<env_name>` with the appropriate environment name (e.g., `dev`, `qa`, etc.).
- **env.endpoint**: The environment where the application under test is deployed. Replace `<base_env>` with the correct base URL for the environment (e.g., `https://api-internal.<env_name>.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-<version>-jar-with-dependencies.jar`, where `<version>` is the `<version>` 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

Expand Down
11 changes: 2 additions & 9 deletions api-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<maven.antrun.plugin.version>3.0.0</maven.antrun.plugin.version>
<maven.source.plugin.version>2.2.1</maven.source.plugin.version>
<git.commit.id.plugin.version>3.0.1</git.commit.id.plugin.version>
<fileName>apitest-keymanager-1.0.0-SNAPSHOT-jar-with-dependencies</fileName>
<fileName>${project.artifactId}-${project.version}-jar-with-dependencies</fileName>
</properties>

<dependencies>
Expand All @@ -97,6 +97,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -118,14 +119,6 @@
<argLine>-Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.version}</version>
<configuration>
<doclint>none</doclint>
</configuration>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
Expand Down
Loading