Skip to content

vitgou/functional-tests

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,057 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recursive tests developed with selenium framework for Arquivo.pt

Build Status

Functional Tests

Generate eclipse .project and .classpath files, similar for idea.

 mvn eclipse:clean eclipse:eclipse

Execute the tests

 mvn clean verify -Dit.test=pt.fccn.arquivo.tests.AllTests -Dtest.url=https://preprod.arquivo.pt -Dremote.saucelabs.user=xxxx -Dremote.saucelabs.key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Dtest.resolution=1280x1024

To debug tests add the argument:

-Dmaven.failsafe.debug

To run the test collection that don't use saucelabs run:

 mvn clean verify -Dit.test=pt.fccn.arquivo.tests.TestCollections

Additionaly the maven has a couple of profiles to make it more easilly to run tests directly to a specific browser. For Internet Explorer:

-Dbrowsers=IE

For mobile phones:

-Dbrowsers=mobile

For development purposes you could use:

-Dbrowsers=desktop-linux

Speed up development

Use sauce labs directly for development of this tests could take too much time. Another aproach is to replace sauce labs with a local selenium grid.

On a different shell start selenium grid using:

docker-compose up

And another run your tests like:

mvn clean verify -Dbrowsers=desktop-linux -Dit.test=pt.fccn.arquivo.tests.imagesearch.ImageSearchTest -Dtest.url=https://arquivo.pt

More information on: https://github.com/SeleniumHQ/docker-selenium

Kill process

In some cases when the test or tunnel is closed incorrectly a process is pending which makes it impossible to run the test again. So, use the following steps:

ps aux | grep sc

And a process will appear with a name similar to "/root/sc-4.4.12-linux/bin/sc -u ArquivoPT". Then,

kill process_ID

About

Functional tests developed with selenium framework for Arquivo.pt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 99.9%
  • Shell 0.1%