Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
SELECT given_name, family_name,ROUND(DATEDIFF(NOW(),birthdate) /365) as age, gender
FROM `patient_program`, patient, person, person_name
WHERE program_id=6
AND patient_program.patient_id=person_name.person_id
AND patient_program.voided=0
AND patient.voided=0
AND patient.patient_id=patient_program.patient_id
AND person.person_id=patient_program.patient_id
GROUP BY patient.patient_id
LIMIT 0, 300

Functional/Performance Test Suite for OpenMRS

...

Repository

...

http://svn.openmrs.org/openmrs-contrib/performance-benchmark/

...

Pre-requisites

...

  • Java 1.6 SDK 
  • Maven (http://maven.apache.org)
  •  Firefox
  •  A deployed version of openmrs web app (at a host that you can specify below)

== Pre-requisites
* Java 1.6 SDK 
* Maven (http://maven.apache.org)
* Firefox
* A deployed version of openmrs web app (at a host that you can specify below)

...

Usage

...

Running tests on default localhost port 8080

Code Block

$ ./test.sh -u <username> -p <password>

Running tests on a non-default host.

Code Block

$ ./test.sh -h <hostname> -o <port> -u <username> -p <password>

Running with profiling options (currently integrates with a running version of yourkit agent at the server side)

Code Block

$ ./test.sh -u <username> -p <password> -c

Running all tests (including the tests specific for modules)

Code Block

$ ./test.sh -u <username> -p <password> -a

Running all tests (including the tests specific for modules)

Code Block

$ ./test.sh -u <username> -p <password> -a

Running an individual test class (it must be inside org.openmrs.test package). The argument must not include the package qualifier.

Code Block

$ ./test.sh -u <username> -p <password> -t <TestClassName>

The connection.properties file

You can provide a connection.properties file in the project home directory where all connection attributes (like username, password, host etc) can be mentioned. A sample file connection.properties.sample is provided. Once a connection.properties file is created you need to enter them on the command line while running test.sh

The input.properties file

Parameters for tests can be modified in the input.properties file.

Note: Currently all the parameters have been set for use with the a test data set which is available at

http://wiki.openmrs.org/pages/viewpageattachments.action?pageId=3342470&metadataLink=true

Check the input.properties for more info