04.08
2010

Testing Experience article: Case study: Testing of Mobile Positioning Web Services

Elvior has done number of case studies over the years. One case study was done in cooperation with Reach-U. The case study was published in the leading testing magazine named Testing Experience.  The case study was conducted to test Reach-U’s Workforce Management (WFM) application, a web-based mobile positioning application developed by Reach-U. WFM is an application that can observe a workforce’s movement history, location and send SMSs to personnel via the web browser client. WFM’s users are primarily companies that would like to track and plan their workforce locations in real time.The architecture of the WFM:The case study was performed to evaluate the applicability of model-based testing for testing web services via functional and load testing – use cases where an operator uses a WFM web-client to locate targets were tested. Only servers that are part of WFM were in the scope of the implementation under test (IUT). A web client was simulated by the test system. It is noteworthy that testing the functionality of the web client was out of the scope of the case study.

The following aspects were evaluated in the case study:

Overall feasibility of model-based testing technology for testing web services. Applicability of model-based testing technology for load testing.

Implementation

In the case study we used TestCast Generator (a test generator producing TTCN-3 test scripts automatically from the State Model (UML) of the IUT), TestCast T3 (full featured TTCN-3 test development and execution platform) and the JMeter (JMet) load tester. Additionally, a system adapter was developed to communicate between WFM and TestCast T3 as well as the JMeter load tester.

Firstly, TestCast Generator was used to generate TTCN-3 test cases from the system model. The test cases generated from the model were executed by TestCast T3. Test cases controlled the execution of JMeter as well. JMeter was used to generate the load for the server infrastructure of WFM. The test cases instructed JMeter to vary the load. Therefore, the test cases were communicated to two counterparts – the IUT and JMeter. In between, the system adapter was developed. The system adapter connected TestCast T3 to WFM and JMeter. The interface of the system adapter towards WFM provided HTTP message traffic over TCP/IP. In this way the test cases ran on the TestCast T3-simulated WFM web-client. The interface of the system adapter to JMeter allowed JMeter to be controlled by HTTP GET messages over TCP/IP.

Architecture of the test environment:

Results Overall feasibility of model-based testing technology for testing web services.

WFM is a complex distributed web application consisting of many server applications distributed/duplicated on different hosts and protected by a load balancer from overload situations. The case study demonstrated the feasibility of the model-based testing (MBT) technology using  TestCast Generato for functional testing of an IUT interface over web services. Applicability of model-based testing technology for load testing

In the case study the load tests and functional tests were used in parallel to test the IUT. The case study demonstrated the applicability of the model-based testing in general and  TestCast Generato technology in particular for usage in load tests to increase the quality of overall testing.Moreover, it showed that MBT technology could be used over the borders of traditional functional black-box testing. In the case study the functional tests were generated out of the WFM model and used in conjunction with a load tester in order to prove the expected behaviour of the IUT in case of heavy loads.

For more information about the case study and project please contact us at elvior@elvior.com.

DOWNLOAD THE FULL ARTICLE

Testing Experience article: Case study- Testing of Mobile Positioning Web ServicesView more documents from Elvior LLC.

Elvior