Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jfernandezsqs authored Oct 18, 2023
0 parents commit 3d762b3
Show file tree
Hide file tree
Showing 951 changed files with 2,000 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/01-Run-console-test.yml
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
52 changes: 52 additions & 0 deletions .github/workflows/02-Autonomous-form-filling.yml
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
67 changes: 67 additions & 0 deletions .github/workflows/03-Wui-testing.yml
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
45 changes: 45 additions & 0 deletions .github/workflows/06-Wopee-assistant.yml
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
Loading

0 comments on commit 3d762b3

Please sign in to comment.