Giter VIP home page Giter VIP logo

utamboilerplate's Introduction

UTAM Open Source boilerplate repo

The github.com/SalesforceLabs/UTAMBoilerplate repo includes a simple boilerplate UTAM page object and an end-to-end test file.

Set Up the UTAM OSS Boilerplate Repo

  1. Clone or fork the repo.

    $ git clone https://github.com/SalesforceLabs/UTAMBoilerplate.git
    $ cd UTAMBoilerplate
  2. Install Volta, which ensures that you use the correct versions of Node.js and Yarn. Volta isn't required, but we recommend it.

    If you installed Volta, run this command in UTAMBoilerplate:

    $ volta install node yarn

    If you installed Volta from homebrew, you might need to run volta setup after volta install and open a new terminal.

    The command installs Node 14.15.1 and Yarn 1.22.5 and configures your environment.

    If you don't install Volta, install Node.js and Yarn:

    To ensure you're all set, run:

    $ node -v
    # v14.15.1
    $ yarn -v
    # v1.22.5
  3. Install project dependencies.

    Run this command to install the project dependencies:

    $ yarn install
  4. In package.json, update the chromedriver version to match your local version of Google Chrome web browser (It will run fine otherwise, but you will avoid downloading the binary).

    To find your local version of Chrome, in the Chrome address bar, enter chrome://settings/help.

    Then update package.json. For example, if your local version is 88, add:

    "chromedriver": "^88.0.0",
  5. Generate page objects.

    $ yarn build

    The UTAM compiler generates JavaScript code from the JSON page objects in src/__utam__. The generated JavaScript files are stored in pageObjects.

  6. Run tests.

    To run all tests, enter yarn test.

    To run an individual test, specify the path to the test file. For example:

    $ yarn test --spec src/test/example.spec.ts

About this boilerplate

UTAM is flexible—it isn't tied to a particular test automation framework or language.

This particular repo uses Typescript, and WebdriverIO with Jasmine.

utamboilerplate's People

Contributors

olivier-martin-sf avatar chasf62 avatar svc-scm avatar tepp0f3l 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.