Coder Social home page Coder Social logo

hchiam / selenium-travis Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 42 KB

Travis CI setup to use selenium-side-runner to run a Selenium IDE .side file that was recorded with a GUI

License: MIT License

JavaScript 36.24% HTML 44.47% Python 19.29%
travis-ci selenium-ide selenium-travis selenium-side-runner

selenium-travis's Introduction

selenium-travis

Selenium IDE, selenium-side-runner, and Travis CI.

Just one of the things I'm learning. https://github.com/hchiam/learning

This is an example repo that has Travis CI set up to run the selenium-side-runner command, which runs a Selenium IDE .side file, which was recorded by using a visual interface tool (a Chrome Extension called Selenium IDE). When I push a new commit, it creates a new build and shows test results on Travis CI here:

Build Status

If you want to test out the selenium-side-runner command locally on your own computer, you can do this:

git clone https://github.com/hchiam/selenium-travis.git
cd selenium-travis
npm install # or: yarn

And then run this command:

npm run test # or: yarn test

Or just npm t. (Either way, it runs selenium-side-runner under the hood.)

Make sure to enable the specific GitHub repo in Travis CI

  1. https://travis-ci.org/account/repositories
  2. Search for the relevant GitHub repo
  3. Hit the sliding button so it moves to the right / turns green

Some of the resources I learned from

Aside

To skip running Travis CI upon commit, the commit message should contain [skip ci], or [ci skip], or [skip travis], etc. (ci, travis, travis ci, travis-ci, or travisci).

You might also be interested in an alternative

Travis CI using Spectron/mocha spec.js to simulate user input and button clicks in an Electron.js app:

https://github.com/hchiam/anonymous-input

Note these 4 files: .travis.yml, travis-build.sh, package.json, and test/spec.js.

selenium-travis's People

Contributors

hchiam avatar

Stargazers

 avatar

Watchers

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