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

  1. Stubs generated for external webservices
    1. Generate a Java ME Web Service Client for following WSDLs MobilityJSR172WSDLs section=2
    • EXPECTED RESULT: Compilable stubs are generated.
  2. Client works for external webservices
    1. 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.
    1. 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>)
  3. for non WS-I complient webservices
    1. 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.
  4. Download failed
    1. New > J2ME Web Service Client
    2. 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.
  5. Wrong proxy
    • Setup: Setup a wrong value to Proxy Settings in Tools > Options
    1. 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.
  6. Generate Web Service Client for All types
    • Setup: Open J2ME Web Service Client wizard
    1. Use URL: http://wiki.netbeans.org/wiki/attach/TS_60_MobilityEndToEnd/EchoNoArraysDOCUMENT.wsdl
    2. Retrieve WSDL
    • EXPECTED RESULT: Validation finish successfully. Finish button is enabled. T
    1. 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.
  7. Generate Web Service Client for Arrays
    • Setup: Open J2ME Web Service Client wizard
    1. Use URL: http://wiki.netbeans.org/wiki/attach/TS_60_MobilityEndToEnd/EchoArraysDOCUMENTService.wsdl
    2. Retrieve WSDL
    • EXPECTED RESULT: Validation finish successfully. Finish button is enabled.
    1. 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.

  1. Generate Mobile Client to Web Application To Basic Types
    1. New > Mobile Client to Web Application
    2. Choose the WebApplicationBasicTypes as Web Application
    3. Choose a package where the server part will be generated
    4. Select Methods In Web Application radio button
    5. Next
    6. Select all the methods in project
    7. Next
    8. 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
  2. Generate Mobile Client to Web Application To Custom Types
    1. New > Mobile Client to Web Application
    2. Choose the WebApplicationBasicTypes as Web Application
    3. Choose a package where the server part will be generated
    4. Select Methods In Web Application radio button
    5. Next
    6. Select all the methods in project
    7. Next
    8. 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


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo