-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 3d762b3
Showing
951 changed files
with
2,000 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: 01 🤖 Browser Console Testing | ||
run-name: "01 🤖 Status testing bot, SUT: ${{ inputs.url }}" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
url: | ||
description: "System under test, url:" | ||
required: true | ||
default: https://dronjo.wopee.io | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
example1: | ||
name: Browser console status testing | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Installation | ||
run: | | ||
pip install -r requirements.txt | ||
rfbrowser init | ||
- name: Testing | ||
run: | | ||
robot \ | ||
--outputdir reports \ | ||
--variable URL=${{ inputs.url }} \ | ||
examples/01-Console/01_bot_w_console_validation.robot | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: example1-run-logs | ||
path: reports/ | ||
retention-days: 10 |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: 02 🎹 Filling Forms Bot | ||
run-name: "02 Filling Form Bot, SUT: ${{ inputs.url }}" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
url: | ||
description: "System under test, url:" | ||
required: true | ||
default: https://dronjo.wopee.io/sign-in.html | ||
openai_api_key: | ||
description: "OpenAI API key" | ||
required: true | ||
default: "Bearer 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" | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
example2: | ||
name: Filling forms on the fly with GenAI | ||
|
||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Installation | ||
run: | | ||
pip install -r requirements.txt | ||
rfbrowser init | ||
- name: Testing | ||
run: | | ||
robot \ | ||
--outputdir reports \ | ||
--variable URL=${{ inputs.url }} \ | ||
examples/02-Forms-fill/02_autonomous_form_filling.robot | ||
env: | ||
OPENAI_API_KEY: ${{ inputs.openai_api_key }} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: example2-run-logs | ||
path: reports/ | ||
retention-days: 1 |
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: 03 👁️👁️ Testing with WatchUI | ||
run-name: "03 👁️👁️ WatchUI testing, mode: ${{ inputs.testing_mode }}, tests: ${{ inputs.tests }}" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
testing_mode: | ||
type: choice | ||
description: "What tests to execute?" | ||
required: true | ||
default: automation | ||
options: | ||
- automation | ||
- autonomous | ||
tests: | ||
type: number | ||
description: "Number of tests(only for 'autonomous'):" | ||
required: true | ||
default: 5 | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
example3: | ||
name: Visual validation with WatchUI | ||
|
||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Installation | ||
run: | | ||
pip install -r requirements.txt | ||
rfbrowser init | ||
- name: Testing (automation) | ||
if: inputs.testing_mode == 'automation' | ||
run: | | ||
robot \ | ||
--outputdir reports \ | ||
examples/03-WatchUI/03a_testing_w_WU_validation.robot | ||
env: | ||
CI: ci | ||
|
||
- name: Testing (autonomous) | ||
if: inputs.testing_mode == 'autonomous' | ||
run: | | ||
robot \ | ||
--outputdir reports \ | ||
examples/03-WatchUI/03b_bot_w_WU_validation.robot | ||
env: | ||
CI: ci | ||
TESTS: ${{ inputs.tests }} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: example3-run-logs | ||
path: reports/ | ||
retention-days: 10 |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: 06 👷🏼 Wopee Assistant Testing | ||
run-name: "06 👷🏼 Wopee Assistant Testing" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
example6: | ||
name: Visual validation with Wopee Assistant | ||
|
||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Installation | ||
run: | | ||
gh release download --repo autonomous-testing/wopee.rf --archive zip --dir dist | ||
pip install dist/*.zip | ||
pip install -r requirements.txt | ||
rfbrowser init | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CR_PAT }} | ||
|
||
- name: Testing | ||
run: | | ||
robot \ | ||
--outputdir reports \ | ||
--listener wopee_rf.listener \ | ||
examples/06-Wopee-Assistant/06_smoke.robot | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: example6-run-logs | ||
path: reports/ | ||
retention-days: 10 |
Oops, something went wrong.