TS 61 MobilityEndToEnd
Mobility Pack Test Specification for End To End
Author: Lukas Hasik
Version: 1.3
Lastupdate: 30.05.2008
Introduction: Test specification for end to end solution in Mobility Pack 6.0
Contents |
Test suite: Java ME Web Service Client testing
Purpose: Verify the functionality of the wizard for generating JSR172 client and the stubs.
Setup: Have an empty Mobility project opened in IDE
- Stubs generated for external webservices
- Generate a Java ME Web Service Client for following WSDLs MobilityJSR172WSDLs section=2
- EXPECTED RESULT: Compilable stubs are generated.
- Client works for external webservices
- Create client for the stubs generated in "Stubs generated for external webservices" test case
- hint: create new midlet class for every stub. Add code like "Shakespeare stub = new Shakespeare_Stub(); System.out.println("result: "+stub.GetSpeech("My kingdom for a horse"));" to the startApp method. You can get more info about a webservice when you look at the asmx page.
- Run the midlet client in emulator
- EXPECTED RESULT: Client returns a response. (E.g. result: <SPEECH><PLAY>KING RICHARD III</PLAY><SPEAKER>KING RICHARD III</SPEAKER>Slave, I have set my life upon a cast, And I will stand the hazard of the die: I think there be six Richmonds in the field; Five have I slain to-day instead of him. A horse! a horse! my kingdom for a horse!</SPEECH>)
- for non WS-I complient webservices
- Try to Retrieve WSDL in J2ME Web Service Client for MobilityJSR172WSDLs section=4
- EXPECTED RESULT: A Message "...wsdl is not WS-I compliant as required by J2ME Web Services specification" appears. Finish button is disabled.
- Download failed
- New > J2ME Web Service Client
- Provide wrong URL in WSDL URL text box and click Retrieve WSDL button
- EXPECTED RESULT: Message "Download failed. I/O exception: Server returned HTTP response code ..." appears. Finish button is disabled.
- Wrong proxy
- Setup: Setup a wrong value to Proxy Settings in Tools > Options
- Try to Retrieve WSDL in J2ME Web Service Client
- EXPECTED RESULT: Message "Download failed. I/O exception: ... Check the proxy settings" appears. Finish button is disabled.
- Generate Web Service Client for All types
- Setup: Open J2ME Web Service Client wizard
- Use URL: http://wiki.netbeans.org/wiki/attach/TS_60_MobilityEndToEnd/EchoNoArraysDOCUMENT.wsdl
- Retrieve WSDL
- EXPECTED RESULT: Validation finish successfully. Finish button is enabled. T
- press Finish button
- EXPECTED RESULT: The client, stubs are generated into the right package. The client+stubs works, they can be used to communicate with the webservice.
- Generate Web Service Client for Arrays
- Setup: Open J2ME Web Service Client wizard
- Use URL: http://wiki.netbeans.org/wiki/attach/TS_60_MobilityEndToEnd/EchoArraysDOCUMENTService.wsdl
- Retrieve WSDL
- EXPECTED RESULT: Validation finish successfully. Finish button is enabled.
- press Finish button
- EXPECTED RESULT: The client, stubs are generated into the right package. The client+stubs works, they can be used to communicate with the webservice.
Test suite: Mobile Client to Web Application
Purpose: Verify the functionality of the wizard for generating mobile client to web application.
Setup: Have an empty Mobility project opened in IDE. Have an WebApplicationBasicTypes web project opened in IDE.
- Generate Mobile Client to Web Application To Basic Types
- New > Mobile Client to Web Application
- Choose the WebApplicationBasicTypes as Web Application
- Choose a package where the server part will be generated
- Select Methods In Web Application radio button
- Next
- Select all the methods in project
- Next
- Choose a package where the client side will be generated
- EXPECTED RESULT: Client and server part are generated and compile. You can check the functionality when you deploy the web project and use the client side in your midlet
- Generate Mobile Client to Web Application To Custom Types
- New > Mobile Client to Web Application
- Choose the WebApplicationBasicTypes as Web Application
- Choose a package where the server part will be generated
- Select Methods In Web Application radio button
- Next
- Select all the methods in project
- Next
- Choose a package where the client side will be generated
- EXPECTED RESULT: Client and server part are generated and compile. You can check the functionality when you deploy the web project and use the client side in your midlet