Skip to content

GitHubVadym/twitter-ui-test-in-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Twitter UI tests

This is a sample project demonstrating how to test Twitter UI

Build with:

Getting Started

Project default parameters:

<browser>chrome</browser>
<browser.version>79</browser.version>
<baseUrl>https://twitter.com/</baseUrl>
<runType>local</runType>

You can either change them in pom.xml or explicitly set parameters in terminal

There are 2 ways to run tests in this Project:

1. Run tests in local machine browser

Note: There is no need in supporting browser drivers anymore, Selenide takes care about dowloading browser drivers binaries(chrome\geckodriver and etc). By default tests are running in chrome

Run command in terminal:

$ mvn clean test

If you want to run tests in Firefox (or other browsers) just add parameter -Dbrowser

$ mvn clean test -Dbrowser=firefox

2. Run test in docker container

Prerequisites: Install and run selenoid hub and ui - Seelenoid Quick Start Guide

Run command to check if Selenoid is up and running:

$ docker ps -a

You should see two selenoid containers in the list: Seelenoid started

Run command in terminal to invoke tests

$ mvn clean test -DrunType=docker

If you want to specify browser or browser version adjust command with parameters -Dbrowser, -Dbrowser.version

$ mvn clean test -DrunType=docker -Dbrowser=firefox -Dbrowser.version=72 

Selenoid UI is available on http://localhost:8080/

VNC allows to see and interact with browser while log will reflect all driver actions: selenoid-ui

Reporting

Prerequisites: Install Allure command line - Allure Installation Guide

After build is finished Allure results will appear in target/allure-results folder. To generate html report and automatically open it in a web browser, run the following command:

$ allure serve target/allure-results

Allure report example: allure-report

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages