GithubHelp home page GithubHelp logo

demoqa's Introduction

Demo QA Project

1. How to run these tests locally?
  • First of all, you need to clone this project that you are going to run to your local environment.
  • git clone https://github.com/numanhan/demoQa.git
  • You can open the project using any IDE. Intellij IDEA is generally recommended for Maven projects.
  • You can download from here : https://www.jetbrains.com/idea/download/#section=mac
  • You need to open the project in the IDE and ensure that the pom.xml files are indexed.
  • This project is coded with Selenium and Gauge using Maven and Java.
  • Check here : https://docs.gauge.org/
  • After the required dependencies of the project are indexed, click on the specs folder in the project directory.
  • Gauge projects often encounter an error after initial setup. To fix this error, you can close the project and open it again. When you act, you will not encounter any errors in the specs files. When you click the Run button, our tests will run.
  • Specs folders contain all test steps in BDD format.
  1. How to run the test in CI/CD pipeline?
  • Run the command brew install jenkins-lts on your terminal.
  • This command install Jenkins CI/CD tool on your local environment.
  • For start your Jenkins on localhost type this command brew services start jenkins-lts on your terminal
  • Usually Jenkins run on localhost:8080
  • Type localhost:8080 on your browser and enter
  • You will see the Jenkins Dashboard
  • New item -> Freestyle Project
  • Source Code Management -> Paste Git Repository URL
  • You need to add credential for git repository. Check here: https://www.jenkins.io/blog/2021/07/27/git-credentials-binding-phase-1/
  • After you added your project click Build Now and you can build your project on your pipeline
3. What you used to select the scenarios, what was your approach?

I preferred to use the BDD structure while creating my scenarios. BDD allows us to act like a user in test scenarios by taking into account the user's behavior, and thus to get results close to the user. At the same time, while creating the project infrastructure, I tried to fit the Page Object Modal structure. In this way, when we want to add a new scenario in the future, we will add a scenario, the methods connected to this scenario and the necessary pages once. We will be able to avoid writing methods again and again every time. At the same time, we avoid memory usage. We can save time and memory while running our tests within the Pipeline.

4. Why are they the most important?

The most important ones are;

  • Creating scenarios based on user behavior
  • Avoiding code duplication using the Page Object Model
  • Leaving memory as light as possible, avoiding code repetition
  • To leave a clean code structure for people who may be involved in the project later on and to help them understand
Calliope.pro link

demoqa's People

Contributors

numanhan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.