Thanks Markus.
Could you please to be more specific about how to run the tests?
Like in TestNG, there are 3 methods: run from Ant script, run from Eclipse (with TestNG plug-in), and run from command line.
In my opinion the chapter about testing your flows is fairly extensive...I hope you'll like it as much as I do! It explains how to test your flows, subflows, persistence contexts and also gives a short introduction to EasyMock, which helps you to create mock implementations of your interfaces.
Kengkaj Sathianpantarit wrote:Thanks. To test flows, does it need to deploy application to Servlet container? Or we can test outside the container?
do we have any testing framework support testing after deploy the application on the servlet container?
Mourougan
Open Source leads to Open Mind
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted
0
Mourouganandame Arunachalam wrote:
Kengkaj Sathianpantarit wrote:Thanks. To test flows, does it need to deploy application to Servlet container? Or we can test outside the container?
do we have any testing framework support testing after deploy the application on the servlet container?
Yes. After deploy to servlet container, we can open a JSP page to run tests (logic to run test is in the JSP).
Mourouganandame Arunachalam
Ranch Hand
Joined: Oct 29, 2008
Posts: 395
posted
0
Kengkaj Sathianpantarit wrote:Yes. After deploy to servlet container, we can open a JSP page to run tests (logic to run test is in the JSP).
Is there any testing framework enforces this type of testing....? just curious ...
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted
0
Mourouganandame Arunachalam wrote:
Kengkaj Sathianpantarit wrote:Yes. After deploy to servlet container, we can open a JSP page to run tests (logic to run test is in the JSP).
Is there any testing framework enforces this type of testing....? just curious ...
I think every testing framework support running tests from command line. If we can run tests from command line, we can run from Java codes as well.
Mourouganandame Arunachalam
Ranch Hand
Joined: Oct 29, 2008
Posts: 395
posted
0
Kengkaj Sathianpantarit wrote:
Mourouganandame Arunachalam wrote:
Kengkaj Sathianpantarit wrote:Yes. After deploy to servlet container, we can open a JSP page to run tests (logic to run test is in the JSP).
Is there any testing framework enforces this type of testing....? just curious ...
I think every testing framework support running tests from command line. If we can run tests from command line, we can run from Java codes as well.
I know testing frameworks provides way to test your java class either from command line or using some IDE.
However, I never heard of testing frameworks forces to test after deploying the code into servlet container. Am I missing something?
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted
0
Mourouganandame Arunachalam wrote:
However, I never heard of testing frameworks forces to test after deploying the code into servlet container. Am I missing something?
Start Servlet container just means make the dependencies available to use.
There are two approaches when testing Java EE, in-container test and out-of-container test.
In case of out-of-container test, we have to simulate the container to make the dependencies available.
I was curious that if Spring Web Flow Test is a custom testing framework that offers simulated container, that was the reason why I asked, and after that I realized that they are JUnit tests (not a custom testing framework of Spring Web Flow).