This content has been marked as final.
Show 1 reply
-
1. Re: How do I get test data into my data via setup with jsfun
ssilvert Nov 2, 2009 2:16 PM (in response to pucky)In setUp/tearDown, you are not inside a Seam request. So anything that Seam does for you will not be available at that point.
I suggest that you create a simple JSF/Seam request that can do the setup and teardown you are looking for. That way, you can just call this request using JSFUnit and do the setup/teardown inside a real Seam request.public void setUp() { JSFSession jsfSession = new JSFSession("/setup.seam"); JSFClientSession client = jsfSession.getJSFClientSession(); client.click("submit_button_to_do_test_setup_action"); } public void tearDown() { JSFSession jsfSession = new JSFSession("/tearDown.seam"); JSFClientSession client = jsfSession.getJSFClientSession(); client.click("submit_button_to_do_test_teardown_action"); }
Stan