-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,61 @@ | ||
# WebUIAction | ||
## API Action | ||
This action enables you to run HCL OneTest API tests. | ||
|
||
## Pre requisites | ||
|
||
1. Create a github repository | ||
2. Create a folder named ".github" in the root of the repository | ||
3. Create a folder named "workflows" inside the ".github" folder. | ||
5. Create a .yml file with any name , inside the "workflow" folder and you need to code as following example in that yml file | ||
## Example usage | ||
|
||
```yaml | ||
name: UI Action | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
|
||
RPT-Action: | ||
runs-on: self-hosted | ||
name: Traditional UI Test | ||
steps: | ||
- name: UI Action | ||
uses: SonaHJ/UIAction@UI_Release | ||
with: | ||
projectdir: C:\Program Files\HCL\HCLProducts\API | ||
selectedConfigType: simple | ||
projectname: TestAPI | ||
environment: COMP-1604-1 | ||
tests: test | ||
``` | ||
7. Replace the example input values with your details. | ||
8. Push it into the main branch | ||
9. Go to the Actions section in the repository and select the workflow. | ||
10. Click the Run workflow dropdown and the list of input boxes get displayed. | ||
To configure agent: | ||
1. Go to settings (Repo). | ||
2. Select action -> runner. | ||
3. Click Create self-hosted runner, follow the download and configure instruction | ||
## Inputs | ||
### `projectdir` | ||
|
||
Fully qualified path to the HCL OneTest UI project directory. | ||
|
||
### `projectname` | ||
|
||
**Required** The name of the API test project. | ||
|
||
### `environment` | ||
|
||
**Required** The API Test environment to use for this execution. | ||
|
||
### `tests` | ||
|
||
Semicolon separated list of tests/suites to run. | ||
|
||
### `junitDir` | ||
Specify the folder to export the JUnit reports to. |