Jungle

UI Test Framework Setup For Jungle.co. This UI suite contains simple test cases to test the Jungle.co. I have used BDD Model to setup this Framework. For that I have used Gherkin(Cucumber) language with Cypress and JavaScript. To start follow below steps.

Run with GitHub Actions:

Open the repo on git hub web: https://github.com/vipkum2/Jungle

Go to Action tab and select the workflow(Run Jungle Framework): https://github.com/vipkum2/Jungle/actions/workflows/main.yml

Click on “Run workflow” from right pannel like: Screenshot 2022-04-24 at 9 16 03 PM

PS: If you are not able to see the “Run workflow” option, then might clone repo and push something. So after that you might get this option.

See the results here: https://vipkum2.github.io/Jungle/Screenshot 2022-04-24 at 6 59 20 PM

You can also download the artifacts reports: https://github.com/vipkum2/Jungle/actions/runs/2216058969

Prerequisites to run on local machine:

Clone Jungle Repo: git clone [email protected]:vipkum2/Jungle.git

Node (v14.16.1) installation: https://nodejs.org/en/download/

asdf installation: OS basis installation guide: https://asdf-vm.com/

yarn installation: asdf install yarn 1.22.17

Installing dependencies

yarn install

Run on local machine:

#Execute below on terminal from inside jungle folder:

yarn cypress open

#It will open Cypress UI Screenshot 2022-04-24 at 7 04 29 PM

Now click on feature file and it will start to running the cases with Chrome or browser you choose. Screenshot 2022-04-24 at 7 05 23 PM

#We can execute the same on command line as well with below command:

yarn cypress run

It will execute all cases in command line and will print the report summary end of file.Screenshot 2022-04-24 at 7 00 59 PM Screenshot 2022-04-24 at 7 01 22 PM

You can also find Video of execution in dir: cypress/videos/Cucumber

You can find json and html report as well in dir: cypress/reports/report.html, cypress/reports/report.json

Note

Reports will publish for each run here if run by github Action: https://vipkum2.github.io/Jungle/

You can also see the reports by navigate to Actions tab on git hub web.

You can find one reports here for example: https://github.com/vipkum2/Jungle/actions/runs/2215625138

You can also downlaod the reports on local from Github Actions: click on Summary -> jungle-artifacts

it will download .zip folder that contains index.html as report.

GitHub

View Github