Giter Site home page Giter Site logo

exerciseinterviewauto's Introduction

I create a file to contain the exercise 2:

playwright/exercise/copyProject.feature

Please navigate to this feature file to review the exercise 2

For exercise 1, I create this automation framework with 'Playwright'

Should use the VSCode to open the framework, there is a setting for cucumber format Please install the plugin:

Cucumber (Gherkin) Full Support

How to run the code

  1. Install Node js
  2. Install Yarn (optional)
  3. Run the command to install package:
  yarn

If you do not install yarn, you can use npm to install package

  npm install
  1. Run a command to create the folder artifacts. In this folder, we will execute some script to generate a bootstrap report (with some chart and the log is more detail)
yarn build
  1. Run the command:
./launch_playwright.sh staging.taskworld

This comment to execute the bash script 'launch_playwright.sh'. Because this is a bash script, you need to run on Linux env (Ex: MacOS)

  1. If you want to run on Windows, you should run this command:
yarn cucumber-js playwright/features/**/*.feature
  • Or you can install the Linux env simulator on cmd to run the bash script 'launch_playwright.sh'
  • I recommend that you should use Linux env to run the bash script, because this bash script has a lot of configuration to modify the run, like changing the environment if needed.
  1. Run the command to generate new report html:
yarn createBddHtmlReport

Run on Docker:

  1. Install Docker

  2. Build a docker image. Using the command as below:

docker build . -t taskworld/playwright
  1. Run the command:
./launch_docker.sh staging.taskworld

exerciseinterviewauto's People

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.