Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

page_object_pattern_demo

Build Status

Made a sample of page object pattern test using some library.

Test Contents

Test site

http://example.selenium.jp/reserveApp_Renewal

Test Pages

Reservation form page Reservation form page

Reservation comfirm page Reservation comfirm page

Reservation confirm error page Reservation confirm error page

Reservation completed page Reservation completed page

Library to be used for testing

Prepare

# Installing Docker Engine (http://docs.docker.jp/engine/installation/linux/ubuntulinux.html)
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install -y docker-ce
sudo gpasswd -a $(whoami) docker

# Installing Docker Compose (http://docs.docker.jp/compose/install.html)
sudo curl -L -o /usr/local/bin/docker-compose $(curl -sI https://github.com/docker/compose/releases/latest | sed -n "/^Location:/{s/^.* //;s#/tag/#/download/#;s#\\r\$#/docker-compose-$(uname -s)-$(uname -m)#;p;}")
sudo chmod +x /usr/local/bin/docker-compose
sudo curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose -o /usr/share/bash-completion/completions/docker-compose

Build & Test

git clone git@github.com:RustyNail/page_object_pattern_demo.git
cd page_object_pattern_demo

docker-compose build
docker-compose run --rm test

Run Rubocop

docker-compose run --rm test bundle ex rubocop

About

Sample of page object pattern test

Resources

Releases

No releases published

Packages

No packages published

Languages