From c3487dd4cc400c4ecb352f6307b09bb43a363fea Mon Sep 17 00:00:00 2001 From: LiuChengTao Date: Wed, 26 Mar 2014 11:44:34 +0800 Subject: [PATCH] Update README.md update the command styles --- README.md | 103 ++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 60 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index debee0e..12e258b 100644 --- a/README.md +++ b/README.md @@ -7,71 +7,85 @@ python2.7 python-pip requests How to build debian package: ================= - Build from source code, get the debian package in folder ../: - dpkg-buildpackage +Build from source code, get the debian package in folder ../: + + dpkg-buildpackage How to install: ================= - Install testkit lite from source code: - sudo python setup.py install --record /var/log/testkit-lite.files +Install testkit lite from source code: + + sudo python setup.py install --record /var/log/testkit-lite.files + +Install testkit lite from debian build: - Install testkit lite from debian build: - sudo dpkg -i ../testkit-lite__all.deb + sudo dpkg -i ../testkit-lite__all.deb How to uninstall: ================= - Uninstall testkit-lite installed with 'setup.py install': - cat /var/log/testkit-lite.files | sudo xargs rm -rf +Uninstall testkit-lite installed with 'setup.py install': + + cat /var/log/testkit-lite.files | sudo xargs rm -rf + +Uninstall testkit-lite installed with 'debian': - Uninstall testkit-lite installed with 'debian': - sudo dpkg -r testkit-lite + sudo dpkg -r testkit-lite How to use: ================= - At first, install a test package or prepare one tests.xml file aligned with schema files: /opt/testkit/lite/xsd/testdefinition-syntax.xsd. - - And then, - 1) You can run case on target: - For web test cases: - testkit-lite -f device:"//tests.xml" -e 'WRTLauncher ' - For native test cases: - testkit-lite -f device:"//tests.xml" - - 2) You can run case in single mode : - For web test cases: - testkit-lite -f "//tests.xml" -e 'WRTLauncher ' --comm localhost - For native test cases: - testkit-lite -f "//tests.xml" --comm localhost +1) You can run case on target: +For web test cases: + + testkit-lite -f device:"//tests.xml" -e 'WRTLauncher ' + +For native test cases: + + testkit-lite -f device:"//tests.xml" + +2) You can run case in single mode : +For web test cases: + + testkit-lite -f "//tests.xml" -e 'WRTLauncher ' --comm localhost + +For native test cases: + + testkit-lite -f "//tests.xml" --comm localhost - 3) You can select on parser engine to simply conduct one or more tests.xml on target: - testkit-lite -f device:"//tests.xml ... //tests.xml" -e 'WRTLauncher ... ' +3) You can select on parser engine to simply conduct one or more tests.xml on target: + + testkit-lite -f device:"//tests.xml ... //tests.xml" -e 'WRTLauncher ... ' - 4) If you want to execute both auto and manual tests: - testkit-lite -f device:"//tests.xml" +4) If you want to execute both auto and manual tests: - 5) If you just want to execute manual tests: - testkit-lite -f device:"//tests.xml" -M + testkit-lite -f device:"//tests.xml" - 6) If you just want to execute auto tests: - testkit-lite -f device:"//tests.xml" -A +5) If you just want to execute manual tests: + + testkit-lite -f device:"//tests.xml" -M - 7) If you want to save test result to another file, by default it'll be under /opt/testkit/lite/latest: - testkit-lite -f device:"//tests.xml" -o /xxx.xml +6) If you just want to execute auto tests: + + testkit-lite -f device:"//tests.xml" -A - 8) If you want to choose some filters: - testkit-lite -f device:"//tests.xml" --status level1 --type type1 ... +7) If you want to save test result to another file, by default it'll be under /opt/testkit/lite/latest: + + testkit-lite -f device:"//tests.xml" -o /xxx.xml + +8) If you want to choose some filters: + + testkit-lite -f device:"//tests.xml" --status level1 --type type1 ... - 9) If you want to run test according capability: - testkit-lite -f device:"//tests.xml" --capability capability.xml +9) If you want to run test according capability: - 10) At last, you can freely compose the above parameters together: - testkit-lite -f /tests.xml /tests.xml -A --priority P1 --type type1 ... + testkit-lite -f device:"//tests.xml" --capability capability.xml + +10) At last, you can freely compose the above parameters together: + + testkit-lite -f /tests.xml /tests.xml -A --priority P1 --type type1 ... Get Results: ================= - - Test report will be generated as tests.result.xml - The result will be under /opt/testkit/lite/latest after execution, you can also check the history results in /opt/testkit/lite/yyyy-mm-dd-HH:MM:SS.NNNNNN. +Test report will be generated as tests.result.xml.The result will be under /opt/testkit/lite/latest after execution, you can also check the history results in /opt/testkit/lite/yyyy-mm-dd-HH:MM:SS.NNNNNN. View Results: ================= @@ -79,8 +93,11 @@ View Results: Test report can be viewed in HTML format, so the data in the xml result file looks more human friendly. Please follow the following steps to view test report: + 1) copy files: application.js back_top.png jquery.min.js testresult.xsl tests.css under directory /opt/testkit/lite/xsd/ + 2) put the files from step 1) under the same directory as the xml result file + 3) open xml result file with a web browser(IE, Chrome or Firefox) Known Issues: -- 2.7.4