...
mvn -Pdeveloper -Dsimulator clean install -Dmaven.test.skip=true
mvn -Pdeveloper -pl developer -Ddeploydb
mvn -Pdeveloper -pl developer -Ddeploydb-simulator
mvn -pl client jetty:run -Dsimulator
Step2: Create the Data Center using marvin by running the command below:
python tools/marvin/marvin/deployDataCenter.py -i setup/dev/advanced.cfg
Step3: Now run "selfservice" tests on the created Data Center, using nose command below. Before running tests, mention a new log folder path for "LogFolderPath", under config file ( setup/dev/advanced.cfg ).
- For running all test suites under a given directory:
nosetests-2.7 --with-marvin --marvin-config=<path_to_marvin_config> --with-xunit --xunit-file=<path_to_out_xml> -w <path_to_test_cases_dir> -a tags=advanced,required_hardware=false --zone=<zone_name> --hypervisor=simulator
- For running a single test suite:
nosetests-2.7 --with-marvin --marvin-config=<path_to
...
_marvin_config> --with-xunit --xunit-file=<path_to_out_xml> <path_to_test_
...
suite> -a tags=advanced,required_hardware=false --zone=<zone_
...
name> --hypervisor=simulator
For running a single test class under a given test suite:
nosetests-2.7 --with-marvin --marvin-config=<path_to_marvin_config> --with-xunit --xunit-file=<path_to_out_xml> <path_to_test_suite>:<TestClass> -a tags=advanced,required_hardware=false --zone=<zone_name> --hypervisor=simulator
- All test logs post run are available under the mentioned LogFolderPath for your analysis.
- All nose run logs with results are dumped to xunit xml file for your analysis.
Note:
- You should have marvin installed on your local environment( This is one time setup ). This is required for deploying Data Center and running tests. To install marvin and use, follow the link. .
Marvin - Testing with Python - The segregation of test cases is currently available in master and 4.4 branch.
- Any issues you see while running simulator, you can log a bug for that branch in ASF jira, selecting component "simulator" against CS.
- Sometimes if your environment has some old marvin or nose installed, pip install --upgrade may not completely remove the old installation. In that case, you need to manually remove them, otherwise, it may fail.
...