• No results found

Selecting Test location Data for Regression Testing of Mobile Location-Based Services

N/A
N/A
Protected

Academic year: 2020

Share "Selecting Test location Data for Regression Testing of Mobile Location-Based Services"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

600 | International Journal of Computer Systems, ISSN-(2394-1065), Vol. 03, Issue 10, October, 2016 Available at http://www.ijcsonline.com/

Selecting Test location Data for Regression Testing of Mobile Location-Based

Services

Cheng Jing, Zhu Yi’an, Zhang Tao and Yu Qing School of computer Northwest Poly-technical University, Xi’an, China

Abstract

Location-based mobile information services provide nearby interesting information for mobile users. These services use user’s locations for their computations, making these services tend to treat locations in close proximity homogenously. The availability and validity of location-based mobile information services are often effected by mobile user location contexts, which make testing of location-based mobile information services become one urgent and challenging issue. In this paper, some test metrics have been proposed to select test data for regression testing of location-based mobile information service. Moreover, a case study is reported to describe our test approaches in details.

Keywords: Mobile testing; Location-based Services; Regression Testing.

I. INTRODUCTION

Location-based mobile apps provide many interesting and convenient location-based services (LBS) and functions, and bring many surprising and exciting user experiences [1]. For example, mobile app “Tripadvisor (tripadvisor.com)” helps to find nearby hotels and restaurants; mobile app “Momo (immomo.com)” helps to find nearby friends; and mobile game “Life is Crime (redrobot.com)” makes mobile players to fight with other players in the same location contexts.

Mobile location-based services have been identified as one of the most important features of mobile app services [2], and have become one hot research topic in mobile computing domains. In the recent years, there have been a number of published research papers addressing LBS. However, most papers primarily focus on infrastructure [3,4], positioning techniques [5], location privacy preserving [6,7], and other areas.

However, there are a few publications discussing mobile LBS testing until now. There is a lack of systematic and effective test approaches for test engineers to address mobile LBS testing. For mobile LBS testing, test engineers are often confused by selecting appropriate test location points in vast using zones.

This paper mainly do some research about test methods for selection test location data for regression testing of mobile LBS testing. The contributions of the paper include: a) A set of metrics are proposed to select test location data for regression testing of mobile location-based service; b) the case study are reported to analyze the cost-effectiveness of proposed regression testing techniques.

II. UNDERSTANDING MOBILE LBS TESTING

A. What is Mobile LBS Testing

Location-based services are information, entertainment, services that are conveniently accessible by mobile users

through GPS-enabled portable devices and mobile networks (e.g., 2G/3G/4G cellular telephones and Wi-Fi networks). Some organizations and scholars have defined LBS, and the classic definition is presented below.

Definition 1: LBSs are information services accessible with mobile devices through the mobile network and utilizing the ability to make use of the location of the mobile device [15].

Based on our recent literature survey, there is a lack of published papers on LBS testing for mobile apps, and also no precise definitions of mobile LBS testing. Here we define it as below.

Definition 2: Mobile LBS testing refers to testing activities for native and Web apps on mobile devices to ensure quality in location-based functions, behaviors, information, and quality of service.

B. The Classifications of Mobile LBS

In recent years, mobile LBS have become more and more popular, and many mobile LBS apps are developed in various domains, such as navigation, information, emergency, advertising, tracking, games, management, and leisure. According to behavior characteristics of LBS, mobile LBS are divided into three types: basic location services, location context information services, and location context interactive services. Those services have different characters and features, and are compared in Table I.

Basic location services - The mobile apps provide basic digital maps, location, and navigation services to help mobile users find correct ways to their destination. Some early map and navigation apps provide basic location services for mobile users.

(2)

information. Mobile users access information with push or pull ways. Most of information services are not real time services. The location context information services are widely used in many domains, for example, business, advertising, management, and leisure.

Location context interactive services - The multiple mobile objects interact with each other in same location contexts. Those mobile objects may be mobile users, smart cars, sensors, or other objects with positions. Location context interactive services provide different behaviors or functions according to locations or location relations between objects. Most of location context interactive services are real-time services, and are applied in some new domains, such as social networks, games and intelligent automobiles.

Today, there are hundreds of mobile apps with location-based information services, such as, Yelp, Booking, etc. So this paper focuses on regress testing of location-based mobile information services.

C. Why is Mobile LBS Testing Important?

Mobile LBS have been identified as killer services of mobile apps, which provide many conveniences and interests for mobile users. However, few published papers address the importance of mobile LBS testing. Here, its primary reasons and importance are listed as follows.

Reason #1: Multiple techniques for LBS - Mobile LBS normally use many different techniques, such as mobile computing, geographic information systems, GPS, cloud computing, Internet, etc. Those techniques make mobile LBS testing more complex.

Reason #2: Location impact for LBS - Location is the most critical factor for mobile LBS, which affects information, behaviors, functions, performance, dependability, privacy, etc.

Reason #3: Higher costs of LBS testing - Due to numerous locations, different kinds of location objects with changing information, and moving objects with unpredictable paths, the test engineers have to spend a lot of time and effort on mobile LBS testing.

III. TEST MODEL FOR MOBILE LBS

This section presents our proposed metrics and test data selection techniques for regression testing of mobile LBS. A. Basic concepts and definitions

First, some basic concepts are defined. These concepts are important to design test cases for mobile LBS.

Definition 3: A location

l

i

long

i

,

lat

i

is a pair of

real numbers representing the longitude

long

i and the

latitude

lat

i of the location on the Earth surface.

Definition 4: The Distance

Dist

 

l

i

,

l

j denotes the shortest distance between two locations

l

iand

l

jon the

Earth surface.

Definition 5: A set of test locations

P

P

P

i

P

k

TL

1

,

2

,

,

,

is a sequence of locations. which

P

i is a location point.

B. Test metrics

This section presents our proposed metrics for test data selection.

 Test location variance

Test location variance

var

t

 

TL

measures the variance of a location sequence of a subset of test locations

P

P

P

i

P

k

TL

1

,

2

,

,

,

. It is defined as fellows:

k

i

i

P

P

Dis

TS

TS

t

1

2

)

,

(

1

)

(

var

(1)

Where

P

is the centroid of all the locations in the subset,

P

is calculated as below:

TS

Lng

P

Lng

P

k

i i

1

.

.

(2)

TS

Lat

P

Lat

P

k

i i

1

.

.

(3)

 Point-of-interest variance

Point-of-interest variance (varp) measures the variance

of the set of

point-of-interests

I

i

POI

i1

,

POI

i2

,

POI

im

, which is covered

by a test location

P

i. The point-of-interest variance represents the distribution of point-of-interests, which is defined as follows:

Ii

k

i ik i

i

Dis

POI

POI

I

P

p

1

2

)

,

(

1

)

(

var

(4) Then, the average variance of test locations subset

 

TL

p

var

 

TS

P

p

TL

p

k

i

i

1

var

)

(

var

(5)

 Centroid distance

(3)

test location

P

i in test locations subset TL, which is

defined as follows:

k i i i

POI

P

Dis

TS

TS

cdis

1 2

)

,

(

1

)

(

(6) Where,the Centroid of tested point-of-interests

i

POI

is calculated as follows:

i m k ik i

I

Lng

POI

Lng

POI

1

.

.

(7) i m k ik i

I

Lat

POI

Lat

POI

1

.

.

(8)

 Point-of-interest distance variance

Point-of-interest distance variance

var

d

measures the variance of distances between test locations

P

i with

covered

point-of-interests

I

i

POI

i1

,

POI

i2

,

POI

im

, which is

defined as follow:

m 1 2

)

,

(

1

)

(

var

k ik i i

i

Dis

P

POI

I

P

d

(9) Then the average of distance variance of test locations subset TL is defined as follow:

 

TL

P

d

TL

d

k i i

1

var

)

(

var

(10)

 Point-of-interest coverage

For a test location

P

i,a set of point-of-interests

i i im

i

POI

POI

POI

I

1

,

2

,

can be tested by

P

i.,

which meet the relation

Dis

P

i

,

POI

ik

. Here,

is test distance. Thus, for the test location subset TL, the average point-of-interest coverage is defined as fellow:

 

TS

I

T

p

k i i

1

cov

(11)

IV. CASE STUDY

This section reports a case study that evaluates the effectiveness of the proposed approaches. We first present

the experimental process, and then give the evaluation metrics. At last, experimental results are analyzed and discussed.

A. Experimental process

We select a mobile app “SmartTravel”, which are developed by our students. The app provides hotels, restaurants, scenic spots, and other point-of-interests according mobile user’s locations. Firstly, we generate 1600 test locations using random test method. We test the app by generated 1600 test locations, and found 48 faults in 248 test locations.

Then, we randomly generate 20 test data subsets from 1600 test locations, and then select one subset from generated 20 test data subsets using the proposed metrics separately. Finally, experimental results are analyzed and discussed.

In order to analyze the stability of the proposed approach, the size of test data set is set to 100,200,400 separately, and the same experiment are executed 5 times repeatedly.

B. Effectiveness Metric

To measure the effectiveness of the proposed approach, two metrics are proposed to evaluate the effectiveness of fault detections.

a. the rate of fault finding rank

The rate of fault finding rank(rff)means the rank ratio of selected test data subset using proposed approach in all test data subsets, which is defined as follow:

 

j

rnk

 

100

%

TL

TL

TL

rff

j

(12)

Where, all test data subsets are

TL

TL

1

,

TL

2

,

TL

n

; j

TL

is the selected test data subset, and

rnk

 

TL

j is the rank of found faults for

TL

j.

b.The rate of fault coverage

The rate of fault coverage (

rfn

) means the ratio of the number of found faults by test data subset to the sum of found faults by all test data subsets, which is defined as follow:

 

j

fn

 

 

100

%

TL

fn

sum

TL

TL

rfn

j

(13)

Where,

fn

 

TL

j is the number of found faults by test data subset

TL

j, and

sum

fn

 

TS

is the sum of the found

faults by all test data subsets. C. Experimental results analysis

(4)

(cdis) are unstable, and the found fault rate is lower. So this metric is not suitable for selecting test data. Other four metrics can select suitable test data subsets, and experimental results are stable. Then the four metrics are effective for test data selection for regress testing of mobile LBS.

Figure1. Test results

By comparing the four metrics, we found that point-of-interest variance and point-of-point-of-interest distance variance have similar results. And two metrics both measure distribution dispersion of the point-of-interests. Those metrics can recommend best test data subsets, and found more faults.

V. RELATED WORKS

Nowadays, mobile LBS have become one hot research topic in mobile computing domain, and many papers have been published to address different areas in mobile LBS. A conceptual framework for personalized location-based tourism apps leveraging semantic web to enhance tourism experience is proposed by Mahmood [3]. Al Nabhan presents a new strategy in achieving highly reliable and accurate position solutions fulfilling the requirements of Location-Based Services (LBS) pedestrians’ applications [8].

The location privacy issues are serious for LBS. Zhang et al. propose an LBS privacy-quantifying framework and used the mutual information metric to measure adversary’s information gain in his inference attacks [9]. An adaptive location privacy-preserving the system is presented, which allows a user to control the level of privacy disclosure with different quality of location-based services [10].

Freudiger et al use Kullback-Leibler divergence between prior and posterior distributions to measure the ability of the adversary to guess the probability of each user visiting specific POIs [11].

However, there are a few publications about mobile LBS testing. Jerry Gao discusses the issues and difficulties of mobile LBS testing [12]. KeZhai proposes a suite of metrics for prioritizing test cases for regression testing of LBS [13]. Nigel Davies proposes a hybrid test and simulation environment for evaluating system- and network-related issues in location-based applications. Huichun Chu proposes a two-tier test approach for location-aware mobile learning systems [14]. SolveigBjørnestad presents an example study about evaluation of a location-based mobile news reader [15]. Jiang Yu analyzes test requirements, and presents a scalable testing framework for mobile LBS [16].

We have proposed an initial test model [17] and some test coverage metrics [18] for function services of mobile LBS. In this paper, we present some test strategies about selecting test devices, location context, location objects, and moving patterns. And then the test approaches are described in details using a case study.

VI. CONCLUSION

In this paper, we propose some selection metrics for regression testing of mobile LBS. We also provide a case study to describe our test approaches in details. We hope our approaches are useful for test engineers to improve effectiveness and quality of regression testing of mobile LBS.

REFERENCES

[1] Adrian Holzera, and Jan Ondrusb. “Mobile application market: A developer’s perspective”, Telematics and Informatics, 2014, 28(1): pp.22-31.

[2] Sergio Ilarri, Arantzalllarramendi, Eduardo Mena, Amit Sheth, "Semantics in Location-Based Services," IEEE Internet Computing, vol. 15(6), 2011, pp.10-14.

[3] Mahmood, F.M., Bin Abdul Salam, Z.A. "A conceptual framework for personalized location-based Services (LBS) tourism mobile application leveraging semantic web to enhance tourism experience", the 3rd IEEE International Conference on Advance Computing (IACC), 2013, pp.287 – 291

[4] Mohammad AL Nabhan, Suleiman Almasri, VanjaGaraj, WamadevaBalachandran, and ZiadHunaiti, “Client-Server Based LBS Architecture: A Novel Positioning Module for Improved Positioning Performance”, International Journal of Handheld Computing Research, vol.1(3), 2010, pp.1-18

[5] Chen HuangChi, Chen YuJu, Chen ChihYung, Wang Shuming T., Yang JenPin, Hwang ReyChue, “A New Indoor Positioning Technique Based on Neural Network”, Advanced Science Letters, Vol.19(5), July 2013, pp. 2029-2033

[6] K. G. Shin, X. Ju, Z. Chen, and X. Hu, "Privacy protection for users of location-based services," IEEE Wireless Communications, vol.19(1), 2012, pp. 30-39.

[7] Zhu, I., K.-H. Kim, and P. Mohapatra. "An Adaptive Privacy-Preserving Scheme for Location Tracking of a Mobile User." in IEEE International Conference on Sensing, Communication, and Networking. New Orleans, USA, 2013, no pp. 9.

[8] AL Nabhan, Mohammad Mousa, “Adaptive, reliable, and accurate positioning model for location-based services”, Brunel University School of Engineering and Design PhD Theses, 2009

(5)

service, (in Chinese), Journal of Xi’an Jiaotong University, vol. 48, no. 2, pp. 8-13, 2014.

[10] Zhu, I., K.-H. Kim, and P. Mohapatra. "An Adaptive Privacy-Preserving Scheme for Location Tracking of a Mobile User." in IEEE Internation Conference on Sensing, Communication, and Networking. New Orleans, USA, 2013, no pp. 9.

[11] J. Freudiger, R. Shokri, and J.-P. Hubaux, Evaluating the privacy risk of location-based services, in Proc. the 15th Int’l Con. on Financial Cryptography and Data Security, Gros Islet, Saint Lucia, 2012, pp. 31-46.

[12] Jerry Gao, X. Bai, W. T. Tsai, and T. Uehara, “Mobile application testing: a tutorial”, IEEE Computer, vol.47(2), 2014, pp.26-35 [13] KeZhai, Bo Jiang, Chan, W.K., "Prioritizing Test Cases for

Regression Testing of Location-Based Services: Metrics, Techniques, and Case Study," IEEE Transactions on Services Computing, 2014, vol.7, no.1, pp.54-67

[14] Hui-Chun Chua, Gwo-Jen Hwangb, Chin-Chung Tsaib, Judy C.R. Tsengc, ”A two-tier test approach to developing location-aware mobile learning systems for natural science courses”, Computers & Education, vol.55(4), 2010, pp.1618–1627

[15] Bjornestad, S., Tessem, B., Nyre, L., "Design and Evaluation of a Location-Based Mobile News Reader," 4th IFIP International Conference on New Technologies, Mobility and Security (NTMS), 2011, pp.7-10

[16] Yu J, Tappenden A, Miller J et al., “A scalable testing framework for location-based services,” journal of computer science and technology, vol.22(2),2009,386-44

[17] Oum-EI-KheirAktouf, Tao Zhang, Jerry Gao, Tadahiro Uehara, “Testing location-based function services for mobile applications”, The First International Workshop on Mobile Cloud TaaS (MCTaaS 2015), 2015,. pp.564-572

References

Related documents

Figure 1 shows an example of Standard PRO-NAVI WBS”. First layer is the project itself. We divide the whole software to be developed by a project to several loosely related sub

So, the contribution of the research will develop an Android application which can provide detection and protection against ARP spoofing by installing the application on

The present study demonstrated that the antitumor efficacy of NC-4016 was superior to that of oxaliplatin in a mouse model of human carcinoma cell line KB.. In

The Action Team, in considering the entirety of its work, particularly the service model, considered that the current configuration of neurosurgery was not the optimum to continue

Gable has demonstrated how Palladio's architecture has endured because of dramatic exterior motifs, economical materials, and internal harmony. That these qualities apply equally to

Product - Mobile as a Disrupter Mobile iOS App Mobile HTML Mobile Android App iPad . iOS App Tablet HTML

If the population of a town is decreasing by 4% per year and started with 12,500 residents, which of the following is its projected population in 10 years.. Show

The Relay clearing ground fault shall be set to a minimum Pick up current below the sustained earth fault current..