Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 29 Next »

OpenCGA uses FitNesse along with RestFixture to write and execute Acceptance Tests. Each Test page is an independent collection of tests and can be either executed independently or as a part of Suite run. 

Download Acceptance Tests Code

Once user has cloned OpenCGA from git repository using following command :

Clone
$ git clone https://github.com/opencb/opencga.git

 There will be a directory "opencga/opencga-test/fitnesse". This contains  a pom file, fitnesse folder with test code.

Install Dependencies

The following command will download all the required files to run fitnesse tests locally and put them into a folder named "dependencies" 

Download Dependencies
mvn clean install

Start FitNesse Server

The following command will start FitNesse server on port 7070:

Start FitNesse Server
/opencga-test/$ ./target/appassembler/bin/opencga-fitnesse.sh

After successful start of server, User can start web browser : http://localhost:7070/ and will see the following webpage :


User can read introduction to FitNesse, examples and other related material on this page or can directly dive into OpenCGA by clicking OpenCga link. 

How To Run Acceptance Tests

As a first step, change the "baseURL" and "user" variable from SetUp pages and point it to the desired OpenCGA installation with proper user name. 

FitNesse tests can either be executed whole as a Suite by pressing "Suite" button on top of page or individual test pages can be independently executed by pressing "Test" button on top of that page. 


                

After successful execution of tests, A summary of results displayed, one like below :


  • No labels