Giter Club home page Giter Club logo

gkarloz / solvd_carina_project Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 190.41 MB

Testing Framework for PetStore.com. Using the All-in-one Carina Framework composed of Selenium, Appium, TestNG, etc. Including Docker compose for parallel testing using Selenium Grid. Easy to setup using Jenkins

Java 99.36% Batchfile 0.64%
api-testing appium carina-framework docker java jenkins mobile-testing qa qa-automation selenium test-automation testng web-testing

solvd_carina_project's Introduction

๐Ÿ”ฌ Solvd_Carina_Project โ—

Multibrowser testing using Selenium Grid with Docker containers. The bat files sets up the selenium grid using containers and removes the containers as well.

Steps: โ—

a.

  • Make sure you have Docker running in your machine before executing this code.

b.

  • Clone this repository:

    git clone https://github.com/GKARLOZ/Solvd_Carina_Project.git
    

c.

  • go to the /to/path/Solvd_Carina_Project directory and run

    mvn clean test
    

Process when executing mvn clean test: ๐Ÿš€

  • Maven initiates the execution of the TestNG xml file, named WebTestParallel.xml.
  • Within this file, the first class, Setup_DockerGrid, triggers the @BeforeTest method.
  • The @BeforeTest method subsequently runs the start_dockergrid.bat script to execute the predefined commands.
  • Inside the start_dockergrid.bat script, a docker-compose.yml file is executed.
  • This docker-compose operation sets up containers for the Selenium grid and multiple nodes, each with distinct environments.
  • Once the @BeforeTest method completes its tasks, the tests DesktopChromeWebTest and DesktopFireFoxWebTest run in parallel, each within its own container.
  • Upon test completion, the @AfterTest method comes into play, removing all active containers and terminals. ๐Ÿš€

API Testing with Facebook's Graph API:

  • API testing to perform operations such as POST, GET, and DELETE against Facebook's Graph API.
  • This meticulous API testing ensures that our backend services are functioning seamlessly and that data interactions are consistent.

Web Testing with Selenium and TestNG:

  • Includes the utilization of data providers for diverse test scenarios, soft assert techniques to capture failures without halting test execution, and the creation of reusable page objects.
  • This approach guarantees the reliability and functionality of web tests.

Mobile Testing with Appium, Android Studio, and Appium Inspector:

  • Detailed testing on mobile applications, ensuring compatibility with various Android devices and versions.
  • Appium Inspector for inspecting mobile app elements and guaranteeing smooth user experiences on mobile platforms.

Parallel testing using Selenium Grid with Docker:

  • Executing the mvn test command executes the test suit with parallel testing.
  • The bat files sets up the selenium grid using containers and removes the containers as well.

Jenkins (CI)

  • Thanks to bat files and docker compose file, it is easy to setup this project on Jenkins
  • Set up your Jenkins jobs to clone the repository and run the "mvn clean test" command.

Information:

  • Carina Framework: https://zebrunner.github.io/carina/

  • Carina is a Java-based test automation framework that unites all testing layers: Mobile applications (web, native, hybrid), WEB applications, Windows applications, REST services, Databases.

solvd_carina_project's People

Contributors

gkarloz avatar

Stargazers

 avatar  avatar  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.