JUnit test for the Scout Search Form [message #1151190] |
Wed, 23 October 2013 03:21  |
Eclipse User |
|
|
|
Hi,
I am using Eclipse Scout Version: 4.3.0. In order to test a presentation functionality on a Form level I have created a test case. Here is a short description of my JUnit test case:
1. Create instances of the Form and FormData classes
2. Add some search data in the FormData instance
3. Export FormData
4. Call the service on the Scout Server side
5. Import FormData and verify some response data received in the FormData
By running a JUnit test I got the NullPointerException. It seems that in my test case I have to create Desktop and DesktopExtension instances as well and to add the form to the DesktopExtension.
I appreciate if somebody can help me about this issue, or any example for testing Forms by JUnit.
Kind regards,
Dusan.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04226 seconds