Giter VIP home page Giter VIP logo

protractor_tutorial's Introduction

Notes

to run:

requires conf.js and spec.js Does NOT need to be named that

  1. conf.js = configuration file: browsers, framework, etc; points at test file
  2. spec.js = test file

Useful documentation

  1. Jasmine cheatsheet: https://devhints.io/jasmine
  2. Protractor API: https://www.protractortest.org/#/api

Jasmine console reporter docs

Jasmine console reporter node package: https://www.npmjs.com/package/jasmine-console-reporter Github repo, not much more info except for pretty screenshots: https://github.com/onury/jasmine-console-reporter

Protractor and Cucumber:

https://medium.com/@tuliobluz/automa%C3%A7%C3%A3o-com-protractor-pageobject-e-cucumber-122537179ab7 https://www.npmjs.com/package/protractor-cucumber-framework

Parameterizing

I parameterized my calculator test according to the process described here: https://stackoverflow.com/a/55909737/11149190

Allure report, html docs:

Step 1 : Install jasmine allure reports plugin

https://www.npmjs.com/package/jasmine...​

npm i -g jasmine-allure-reporter

Step 2 : Add configuration in conf.js

Step 3 : Run conf.js and check allure-reports are generated - changed destination to target folder

  • this will generate an xml report

Step 4 : Add allure command line tool:

  • REQUIRES Java 8 or higher installed

https://www.npmjs.com/package/allure-...​

npm i allure-commandline

Step 5 : Run command allure serve “location/of/allure-results/folder”

// todo: need to clean the allure-results test xml directory

protractor_tutorial's People

Contributors

an-dy1 avatar

Watchers

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