TS 60 MobilityEndToEnd

Mobility Pack Test Specification for End To End and Samples (In Progress)

Author: Lukas Hasik
Version: 1.1
Lastupdate: December.06.2007
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. Client for external webservices from xmethods.com


  1. for non WS-I complient webservices
    1. Try to Retrieve WSDL in J2ME Web Service Client for "http://www.webservicex.com/CurrencyConvertor.asmx?wsdl"
    • EXPECTED RESULT: Message "CurrencyConverter.wsdl is not WS-I complient as required by J2ME Webservice specification.



  1. for backword compatibility (Applications developed in NB 5.5 should run in NB6)
    1. Open Dilbert sample application developed in NB 5.5
    • Compile and run the application
    • EXPECTED RESULT: Application should be compiled and run with out modifications.



  1. 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.


  1. 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.


  1. JSR172 non-compliant webservice
    • Setup: Open J2ME Web Service Client wizard
    1. Use URL: http://www.webservicex.net/convertMetricWeight.asmx?wsdl in J2ME Web Service Client
    2. Retrieve WSDL
    • EXPECTED RESULT: A Message "...wsdl is not WS-I compliant as required by J2ME Web Services specification" appears. Finish button is disabled.



  1. Generate Web Service Client
    • Setup: Open J2ME Web Service Client wizard
    1. Use URL: http://www.softwaremaker.net/webservices/swm/Convertor/Convertor.asmx?wsdl
    2. Retrieve WSDL
    • EXPECTED RESULT: Validation finish successfully. The Client Name is Convertor and Package is convertor. Finish button is enabled. The Create Sample MIDlet checkbox is checked.
    1. press Finish button
    • EXPECTED RESULT: The client, stubs ("later" and visual midlet) are generated into the right package. The client+stubs works, they can be used to communicate with the webservice.


  1. Generate Web Service Client
    • Setup: Open J2ME Web Service Client wizard
    1. Use URL: http://wiki.netbeans.org/wiki/attach/TS_60_MobilityEndToEnd/EchoNoArraysDOCUMENT_TS_60_MobilityEndToEnd.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.


  1. Generate Web Service Client
    • Setup: Open J2ME Web Service Client wizard
    1. Use URL: http://wiki.netbeans.org/wiki/attach/TS_60_MobilityEndToEnd/EchoArraysDOCUMENTService_TS_60_MobilityEndToEnd.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 attached 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


  1. 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