Git Product home page Git Product logo

ui-framework's Introduction

Clipboard Automation Task

Dependencies

For this project to run, you would need to install below 3 dependencies on your machine:

If your JAVA_HOME is set to anything other than JDK 11, you would need to update the path. Else your project will not run. Also, do remember to set the correct JDK settings in your IDE.

Getting Started

choices file path: src/main/resources/choices.conf

APP_ENV: Choose develop or staging environment file to run the test cases. Currently both are having same data.

HOST" This config field will let tests run in local or remote docket containers. host.localhost -> Thil config will run tests in our local machine. host.docker.selenium.grid -> Thil config will run tests in remote docker containers.

BROWSER: This config field will let us run the tests in the given browser.

HEADLESS: This config field will let us run the tests in Headless mode if the value is true.

Unit Tests Class: src/test/java/TestSandbox.java

Amazon Tests Class: src/test/java/AmazonTests.java

Run Tests from console:

  • Clone the project from git
  • Update choices.conf file to run tests in local machine.
  • Navigate to project folder where pom.xml is located.
  • Execute the following command to run the test cases from console: mvn clean test

Run Tests in IDE:

  • Import the project into IDE
  • Update choices.conf file to run tests in local machine.
  • Open AmazonTests class and run the tests using JUnit

Run Tests in Docker:

Dockerfile Path: /ui-framework/UIFramework2.Dockerfile

  • Install latest docker into your machine from Docker Download
  • Test cases execution instructions are mentioned at the top of the above Dockerfile path. Please kindly follow the instructions and execute the cases.

docker-compose.yml file: /ui-framework/docker-compose.yml

  • Install latest docker into your machine from Docker Download
  • Docker containers spin up instructions are provided at top of the above mentioned docker-compose.yml file.
  • Update the choices config HOST field value to host.docker.selenium.grid to run the tests in containers.
  • Run the tests cases as per your choice by following instructions in Run Tests from console: or Run Tests in IDE:

Note:

Sometimes I was having chrome browser launch issues in containers. I tried many solutions to fix this like browser options and OS permissions etc. But none of them worked properly.

Success!

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.