Mar 14th, 2011, 11:44 AM
easiest way to write a test
the situation is:
i have running tests extending AbstractTestNGSpringContextTests. what's the easiest way to get from there to run a test on web-flow-level? i don't need mocked webflows. i want to run all tests on the real ones. everything is built and deployed, i just don't know how to access flows and execute transitions on them inside a test.
how to do it?
Mar 15th, 2011, 02:50 AM
you DO test your flows, don't you?
Mar 15th, 2011, 08:26 AM
I've not testing web flows yet however I believe any web based testing should be the right tool for testing Spring Web flow, because it involves user interaction via a web application.
Not sure, how we can test it using JUnit or TestNG.
Try using Selenium (http://seleniumhq.org/) is a Firefox add-on that records clicks, typing, and other actions to make a test, which you can play back in the browser.
Mar 15th, 2011, 08:39 AM
not good. i want to test something like "is variable x set, and does it have value y after switching into state z". a browser doesn't see things like that.