Hi Samisa, On Thu, Feb 3, 2011 at 9:02 AM, Samisa Abeysinghe <sam...@wso2.com> wrote:
> Um, it has to work across platforms. Can we not use something like > ant/maven for this rather than a script? Yes, I thought of using ant initially. But even with ant I cannot write platform independent script. Please refer the ant script [1] which I used to test G-Reg with different DBs options. Even in this script I had to check the OS before executing certain system calls. I selected Perl since I was able to reuse XML processing model written by C team. And, perl library functions provide all most all features I require. My plan was to write the script for Linux and extend it to support windows later. To be frank, I am not familiar much with maven. And my initial impression on maven was based on our build scripts, which we use ant scripts inside maven to make the build. So I under the impression that maven can not do much things when it comes to automating command line tool. Thanks, Krishantha [1] https://wso2.org/repos/wso2/trunk/commons/qa/db-configuration-scripts/build.xml > > > On Thu, Feb 3, 2011 at 7:58 AM, Krishantha Samaraweera < > krishan...@wso2.com> wrote: > >> Hi Sumedha, >> >> On 2/3/11, Sumedha Rubasinghe <sume...@wso2.com> wrote: >> > Hi Kris, >> > This is excellent work. I tried checking out, but it failed giving >> following >> > error. >> > >> > "svn: URL ' >> > >> https://wso2.org/repos/wso2/trunk/commons/qa/registry/checkin-checkout-script/src/main/resources/governance/services/http/www/webserviceX >> ' >> > of existing directory >> > >> 'checkin-checkout-script/src/main/resources/governance/services/http/www/webservicex' >> > does not match expected URL ' >> > >> https://wso2.org/repos/wso2/trunk/commons/qa/registry/checkin-checkout-script/src/main/resources/governance/services/http/www/webservicex >> > ' >> > " >> >> Thanks for your inputs, I think you are on Mac or Windows. Linux users >> will not find this problem. Here is the reason. >> >> When you have two directories like >> /src/main/resources/governance/services/http/www/webservicex >> and >> /src/main/resources/governance/services/http/www/webserviceX >> >> on Linux, they are different directories. So you import like this to >> subversion without any issues. >> >> But when you try to checkout on Windows/Mac, since these are same >> directories on the environment, you get that error message. >> >> I will fix this checkout problem and update you. >> >> Thanks, >> Krishantha. >> >> > >> > Anyway, talk with Damitha & make the result output file format >> compatible >> > with what our performance testing framework can read in. That way, we >> can >> > directly use the output from this to generate statistics using >> performance >> > testing framework. >> > >> > /sumedha >> > >> > On Thu, Feb 3, 2011 at 1:58 AM, Krishantha Samaraweera >> > <krishan...@wso2.com>wrote: >> > >> >> 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<http://ww2.wso2.org/%7Eqa/test_framework_builds/registry/wso2carbon-checkin-checkout-1.0.zip> >> < >> http://ww2.wso2.org/%7Eqa/test_framework_builds/registry/wso2carbon-checkin-checkout-1.0.zip >> > >> >> >> >> _______________________________________________ >> >> Carbon-dev mailing list >> >> Carbon-dev@wso2.org >> >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> >> >> >> > >> _______________________________________________ >> Carbon-dev mailing list >> Carbon-dev@wso2.org >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> > Thanks, > Samisa... > > Samisa Abeysinghe > VP Engineering > WSO2 Inc. > http://wso2.com > http://wso2.org > > > > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > >
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev