Hi all, I have improved the perl script which I have been using to test G-Reg checkin/out client as a test framework. Currently, the framework has around 36 test cases and covers 80% of the checkin/out functionalities, including some customer scenarios. I will be able to add more tests once G-Reg team finish with redesigning REST-API in Registry. And, also I wil check the possibility of using remote registry APIs to cater some registry operation requirements for pending functinalities.
Hopefully, this framework will save at least five hours of testing effort. Source code and the the framework distribution can be found at [1] and [2]. Instructions to run the framework is available in the README of given distribution. the framework runs based on the parameters given in greg_test.xml file, To add more test, you may have to write a Perl subroutine and customized the tests defined. A sample result file is also attached. Todo: ======= 1. Write a windows version (if required) 2. Resource meta data checkin/out. 3. cyclic symlink handling. 4. checkin/out based on resource permission levels. 5. Add more test to cover service meta data checkin/out 6. Checkin/out between different instances. I look forward to your feedbacks for improvements. Thanks, Krishantha. [1]https://wso2.org/repos/wso2/trunk/commons/qa/registry/checkin-checkout-script [2]http://ww2.wso2.org/~qa/test_framework_builds/registry/wso2carbon-checkin-checkout-1.0.zip
Total test cases: 36 Successful test cases: 36 Failed test cases: 0 Presenatage of failure cases: 0 % Passed Test Cases ======================= test1 -- chekout registry root test2 -- update registry root test3 -- checkin to registry root test4 -- chekout a registry collection test5 -- chekout registry root to a dump file test6 -- chekout registry collection to a dump file test7 -- checkin dump file to registry root - depends on test5 test8 -- checkin dump file to registry collection - depends on test6 test9 -- update registry collection - depends on test4 test10 -- checkin new file to registry root test11 -- checkout updates to registry root- depends on test10 test12 -- update a file and checkin to registry root - depends on test11 test13 -- checkout updated content of root - depends on test12 test14 -- checkin file with colon to registry root test15 -- checkout resources with colon in name- depends on test14 test16 -- checkin file names with spaces to registry root test17 -- checkout file with spaces- depends on test16 test18 -- checkin files to a collection - depends on test17 test19 -- checkin after file deletion - depends on test18 test20 -- checkout after file deletion - depends on test19 test21 -- checkin collection test22 -- checkout collection - depends on test21 test23 -- checkin collection after updating- depends on test22 test24 -- checkout collection after updating- depends on test23 test25 -- checkin collection after deleting - depends on test24 test26 -- checkout collection after deleting - depends on test25 test27 -- checkin WSDLS, Schemas, Endpoints, Policies, Services test28 -- checkout WSDLS, Schemas, Endpoints, Policies, Services test29 -- checkin a collection with symlinks test30 -- checkout a collection with symlinks test31 -- checkout registry root with incorrect user credentials test32 -- checkout from invalid resource path test33 -- checkin to registry root with invalid user credentials test34 -- Update registry root with invalid user credentials test35 -- checkout with conflicting resources test36 -- update with conflicting resources - depends test35 Failed Test Cases ======================= cat: filename-fail.out: No such file or directory
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
