#The testing framework for cloud testing.
##To get the project code
git clone ssh://<userid>@tempest-reviews.eng.vmware.com:29418/cloud-testing
##User manual ###For integration and end-to-end testing
-
Dependencies
- JDK8, Groovy2+, Gradle2+.
-
How to open project.
- Use the Intellj IDEA/Eclipse to open the gradle project by selecting the
cloud-testing/build.gradle.
- Use the Intellj IDEA/Eclipse to open the gradle project by selecting the
-
How to run tests.
- In Intellj IDEA, open
gradle toolpanel, run thetestorbuildtask in specific project. - Or in terminal, run
gradle testin specific project directory (The gradle runtime is installed).
- In Intellj IDEA, open
-
Where to add test cases.
- In
src/test/javadirectory, the TestNg test cases can bed added. Those can be ran by IDE test runner.
- In
-
How to get the code coverage result.
- Run
jacocoTestReporttask aftertestto get the code coverage report.
- Run
-
Where to open the test report.
- Open
build/reports/tests/html/index.htmlto open the reportNg test report.
- Open
-
Where to open code coverage report.
- Open
build/jacocoHtml/index.htmlto open the Jacoco code coverage report.
- Open
-
How to run sanity test.
- Provision the local dev env. (Refer to https://github.com/vchs/services_dev_env)
- Run
git clone https://github.com/vchs/cloud-testingto local machine. - Run
cd cloud-testing - (Optional), Update the rest.baseUrl to actual env in
cloud-testing/end-to-end-testing/src/test/resources/config/application.yml. If the ip and port in local dev env is not changed, ignore this step. - Run
gradle end-to-end-testing:sanitytest - Collect result in console or in
end-to-end-testing/build/reports/directory.
-
How to execute the test case concurrently with gradle.
- Run
git clone https://github.com/vchs/cloud-testingto local machine. - Run
cd cloud-testing - Configure the
concurrentsettings incloud-testing/end-to-end-testing/src/test/resources/config/application.yml。 - Or run single test with gradle and invocation count as
gradle fulltest --tests *testGetDBInstanceDuringProvision -DinvocationCount=100.
- Run
-
How ro run test in executable jar.
- Run single test method:
java -jar end-to-end-testing-1.0.jar --testClass=UnprovisionInstanceTest --testMethod=testUnProvisionDBByList --rest.baseUrl=localhost:8080. - Run test group:
java -jar end-to-end-testing-1.0.jar --testGroup=fulltest --rest.baseUrl=localhost:8080. - Run test class:
java -jar end-to-end-testing-1.0.jar --testClass=UnprovisionInstanceTest --rest.baseUrl=localhost:8080. - Run with base url and node size parameters:
java -jar end-to-end-testing-1.0.jar --testClass=UnprovisionInstanceTest --rest.baseUrl=localhost:8080 -=nodeSize=2. - Run with different plan and db version:
java -jar end-to-end-testing-1.0.jar --testGroup=fulltest --rest.baseUrl=localhost:8080 -=planName=Large --dbEngineVersion=mssql_2008R2.
- Run single test method: