Giter Club home page Giter Club logo

spog-test's Introduction

SPoG-test

SPoG-test is a Playwright-python based framework to test trustification UI. The purpose of this repo is to execute and test the trustification UI, where the backend REST API is tested with RUST scripts. Along the way there will be attempts to execute these tests automatically against the Trustification repo.

Quick Start

  1. Clone the repository
git clone https://github.com/trustification/spog-test.git
cd spog-test
  1. The shell script run_spog_tests.sh is capable of setting up the virtual environment and installing the required packages to execute the Automation scripts. At the end of the execution the HTML reports are stored into results directory. To run the script, the user should pass trustification application URL, registered Username and Password.
sh run_spog_tests.sh -a https://staging.trustification.dev/ -u test -p user@123

By default, the above step would execute the tests under /tests directory.

The target tests directory and the results directory which can be changed with the command line arguments.

sh run_spog_tests.sh -a https://staging.trustification.dev/ -u test -p user@123 -r test_results_dir -t custom_tests_dir
  • Playwright-python is internally backed up with pytest. As an alternate to using the shell script run_spog_tests.sh, we can use python and pytest to directly install the requirements and execute the tests.
  • Playwright by default executes the scripts in headless mode, In order to execute the tests on browsers run the command pytest --headed

Contributing

See CONTRIBUTING.md

spog-test's People

Contributors

alanfx avatar ikanias avatar mrrajan 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.