Hi Irham, Your text case should be extending the master test case, create a registry instance. Next create a resource file and set the resource name, context and media type (text/plain). Then use the registry.put() function to add the resource to the server.
Thank you, Shiva Balachandran On Fri, Feb 13, 2015 at 11:28 AM, Irham Iqbal <[email protected]> wrote: > Hi , > > I need to write a test case on kernel to test --cleanRegistry(clean all > registry space) server start up argument > > To achieve the task am trying to do the following > > 1. Add a text file to wso2carbon-core registry > 2. Run --cleanRegistry server start up argument. > 3. Finally check text file is deleted or not from kernel registry. > > To achieve the first task i need to add a text file as a resource to > kernel registry.Any suggestions and ideas are welcome! > > Thanks, > > Iqbal > > On Thu, Feb 12, 2015 at 11:16 AM, Shiva Balachandran <[email protected]> > wrote: > >> Hi Irham, >> >> What is the resource you have to add? If it is a config file for some >> third party jars( refer to [1]) or if can you elaborate on the resource. >> >> [1] - >> https://docs.wso2.com/display/Carbon430/Config+Files+for+Third+Party+JARs >> >> Thank you, >> >> Regards >> >> On Thu, Feb 12, 2015 at 11:08 AM, Irham Iqbal <[email protected]> wrote: >> >>> Hi, >>> >>> I am writing test case for --cleanRegistry server start up argument on >>> kernel level. In order to that i have to add a resource to wso2carbon-core >>> pack what is the best way to do that. your suggestions would be highly >>> appreciated >>> >>> Thanks, >>> Iqbal >>> >>> -- >>> Irham Iqbal >>> Software Engineer - Test Automation >>> WSO2, Inc.: http://wso2.com >>> lean. enterprise. middleware >>> phone: +94 777888452 >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Shiva Balachandran >> Software Engineer >> WSO2 Inc. >> >> Mobile - +94 774445788 >> Blog - https://shivabalachandran.wordpress.com/ >> > > > > -- > Irham Iqbal > Software Engineer - Test Automation > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > phone: +94 777888452 > -- Shiva Balachandran Software Engineer WSO2 Inc. Mobile - +94 774445788 Blog - https://shivabalachandran.wordpress.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
