wso2 / testgrid

TestGrid provides the enterprise customers confidence on the products and updates WSO2 ship.
Apache License 2.0
55 stars 66 forks source link

Provide separate command options to execute creation of product test plan, running each test plan, and generating reports. #101

Closed kasunbg closed 6 years ago

kasunbg commented 6 years ago

Description:

This introduces three main commands:

usage: create-product-testplan -p PRODUCT_NAME -v PRODUCT_VERSION -c CHANNEL
usage: run-testplan -t TESTPLAN_PATH -p PRODUCT_NAME -v PRODUCT_VERSION -c CHANNEL
usage: generate-report -p PRODUCT_NAME -v PRODUCT_VERSION -c CHANNEL
usage: help
example: sh testgrid.sh create-product-testplan -p wso2is -v 5.3.0 -c public_branch
example: sh testgrid.sh run-testplan -t ./my-testplan.yaml-p wso2is -v 5.3.0 -c public_branch
kasunbg commented 6 years ago

Further usage examples for the first two commands:

create-product-testplan

mkdir /tmp/tg-home; 
mkdir /tmp/jmeter-home; 
export TESTGRID_HOME=/tmp/tg-home 
export JMETER_HOME=/tmp/jmeter-home

java -Dlog4j.configurationFile=/home/kasun/wso2/msf4j/conf/log4j2.xml -jar target/org.wso2.testgrid.core-0.9.0-SNAPSHOT-jar-with-dependencies.jar create-product-testplan -p wso2is --version 5.4.0 --infraRepo=/home/kasun/git-repos/test-grid-is-resources

run-testplan

java -Dlog4j.configurationFile=/home/kasun/wso2/msf4j/conf/log4j2.xml -jar target/org.wso2.testgrid.core-0.9.0-SNAPSHOT-jar-with-dependencies.jar run-testplan -p wso2is --version 5.4.0 --infraRepo=/home/kasun/git-repos/test-grid-is-resources -trd=/home/kasun/git-repos/test-grid-is-resources -t /home/kasun/git-repos/test-grid-is-resources/ProductTests/testplan1.yaml