Could you please share your suggestions and approach to implement CA LISA Test for unit testing purpose?
This is a very open-ended question. You can use LISA Test for various types of testing but we should understand the use case/scenario you are working with.
Please provide more details on the exact scenario you are looking to unit test.
Generally unit testing is done at code/method level and does not require the install of the product instead tests very specific method. This testing is done by developer so s/he use code to create unit tests. Can you please provide little more info on what are the goals of unit tests you are trying to implement?
We are still in requirement understanding phase and have below requirement for development team.
- Utilize LISA product in development phase to create unit testing suite.
- To come up with test suite to be used by development team
- Test suite should support CURD operation for basic building blocks components
Please let me know your suggestion to achieve above goals using LISA.
Unit testing generally means executing specific piece of code using code for which you use XUnit tools like JUnit etc. CA Application Test can be configured to execute those tests if that is what you are looking for. Or are you looking for ability to create CA Application Tests using code?
Thanks for reply and clarification on unit testing.
I am particularly looking answer of below questions -
1. Is it possible to perform unit testing using CA Application Test without integrating it with XUnit Tools (i.e. JUnit)?
2. Does CA Application Test provides any step/option which can test a piece of code, as JUnit framework provides?
3. Is it possible to create CA Application Test using code?
Thanks In Advance.
Please help me with the answer of questions asked by me in my previous post.
It is possible to test code from LISA without integrating XUnit tools. LISA has out of the box test steps which support J2EE code execution. Through these steps you can instantiate instances of objects, execute methods, and perform validations on the results of execution. EJB's are also supported and the out of the box LISA step allows you to make calls to EJB's running within a J2EE container. For any other type of custom work, there is a Java step (which uses beanshell) which you can use to write and execute any custom code you'd like to write. You could potentially drop your own jar files onto the LISA class path (through the hotDeploy folder) and then create instances of your application code objects directly from within LISA while being able to take advantage of all of the filter and assertion capabilities LISA comes with out of the box.
Retrieving data ...