Coder Social home page Coder Social logo

ui-auto's Introduction

SETUP

Gradle

Install Gradle and put it in your path

TIP: Unix only you can copy & paste the following shell snippet):

curl http://downloads.gradle.org/distributions/gradle-1.4-bin.zip > $HOME/gradle.zip
mkdir -p Groovy/gradle
cd Groovy/gradle
unzip $HOME/gradle.zip
mv gradle-1.4 1.4
rm $HOME/gradle.zip
export GRADLE_HOME=$HOME/Groovy/gradle/1.4
export PATH=$PATH:$GRADLE_HOME/bin
echo 'export GRADLE_HOME=$HOME/Groovy/gradle/1.4' >> $HOME/.profile
echo 'export PATH=$PATH:$GRADLE_HOME/bin' >> $HOME/.profile
cd $HOME

Windows Users:

Download the zip

unpack

Environment variables

add GRADLE_HOME to gradle unziped files

add %GRADLE_HOME%\bin to PATH variable

Preparation

before runing it you should invoke some commands in order to download the dependencies and create the correct IDE project files

I'll use IDEA coz is nice

gradle cleanIdea -PtestSuite=smoke

gradle idea -PtestSuite=smoke

that should build the project (downloading the dependencies if you dont already have them on your local m2) and create the idea ipr, iws and stuff

UI Automation

This project contains the automation for Web Pages. The technology used to automate these tests are Selenium + Geb + TestNG using groovy as language. We use TestNG as runner to group test cases in suites as regression or sanity check.

The way to execute this project is using Gradle:

** Note: user and pass parameter are optionals, they have defaults at Properties class

smoke

gradle -PtestSuite=smoke test

this bottom lines are refence to see that parameter can be passed through command line but all the need for this expample are at build.gradle already

gradle -Dgeb.build.baseUrl=https://example.com/  -Duser="[email protected]" -Dpass="el pass"   -i -PtestSuite=smoke test

ui-auto's People

Contributors

naitse avatar

Watchers

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