Skip to content
Merged
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 @@ -103,8 +103,13 @@ To execute the tests using Jar, use the following steps:
```

2. Run the automation test suite JAR file:
```sh
# Linux / macOS / Git Bash
java -Dmodules=prereg -Denv.user=api-internal.<env_name> -Denv.endpoint=<base_env> -Denv.testLevel=smokeAndRegression -jar apitest-prereg-*-jar-with-dependencies.jar
```
java -jar -Dmodules=prereg -Denv.user=api-internal.<env_name> -Denv.endpoint=<base_env> -Denv.testLevel=smokeAndRegression -jar apitest-prereg-1.2.1-SNAPSHOT-jar-with-dependencies.jar
```powershell
# Windows PowerShell (does not expand * for java, so resolve the file first)
java -Dmodules=prereg -Denv.user=api-internal.<env_name> -Denv.endpoint=<base_env> -Denv.testLevel=smokeAndRegression -jar (Get-ChildItem apitest-prereg-*-jar-with-dependencies.jar).Name
```

# Using Eclipse IDE
Expand Down Expand Up @@ -178,7 +183,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 may look like `apitest-prereg-1.2.1-SNAPSHOT-jar-with-dependencies.jar`.
- **jar**: The JAR built in `target/`, named `apitest-prereg-<version>-jar-with-dependencies.jar`, where `<version>` is the `<version>` in `pom.xml`. The `apitest-prereg-*-jar-with-dependencies.jar` pattern above picks it up, so the command does not change when the version does.

### Build and Run Info

Expand Down
2 changes: 1 addition & 1 deletion api-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version>

<git.commit.id.plugin.version>3.0.1</git.commit.id.plugin.version>
<fileName>apitest-prereg-1.4.0-SNAPSHOT-jar-with-dependencies</fileName>
<fileName>${project.artifactId}-${project.version}-jar-with-dependencies</fileName>
</properties>

<dependencies>
Expand Down
Loading