Skip to content

KsiXy/bitly_sdet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR-code Monkey Test

This repository contains UI tests for the QR code monkey website using Cypress framework.

Getting Started

Mandatory requirements

  • Node.js version 18 or higher installed - link

To run the tests, follow these steps:

  1. Clone the repo
git clone https://github.com/KsiXy/bitly_sdet.git
  1. Navigate to the directory
cd  bitly_sdet
  1. Install the dependencies
npm install

Executing program

  • To open Cypress launchpad run
npm run e2e
  • Once Cypress app is open, choose a browser to run the tests in.
  • By clicking on the 'qrMonkey' test file, the tests will automatically run

Tehnical description

Test scenarios

The tests are covering three scenarios to ensure that website is working properly.

  • Generating a QR code with URL
  • Generating a QR code with Text
  • Generating a QR code with Phone

Selected approach

The approach that was used was page object model, where the page elements with methods to interact with them are stored in each [Name].page file. For the simplicity of the challenge and code, I didn't create a .page file for every single page, but stored most of the common elements and methods inside the 'Common.page.js', but in general that would be an approach to use.

Code standards

Abstractions for different actions were created in order to simplify the process of writing tests and make it reusable. Example of this is:

  • clickOptionButton(option) method which accepts an attribute of the button name as a string and can be re-used in tests by passing the name we need.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published