Learning-based Widget Matching for Migrating GUI Test Cases

GUI test case migration is to migrate GUI test cases from a source app to a target app. The key of test case migration is widget matching. Recently, researchers have proposed various approaches by formulating widget matching as a matching task. However, since these matching approaches depend on stat...

Full description

Saved in:
Bibliographic Details
Published in:Proceedings / International Conference on Software Engineering pp. 828 - 840
Main Authors: Zhang, Yakun, Zhang, Wenjie, Ran, Dezhi, Zhu, Qihao, Dou, Chengfeng, Hao, Dan, Xie, Tao, Zhang, Lu
Format: Conference Proceeding
Language:English
Published: ACM 14.04.2024
Subjects:
ISSN:1558-1225
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Abstract GUI test case migration is to migrate GUI test cases from a source app to a target app. The key of test case migration is widget matching. Recently, researchers have proposed various approaches by formulating widget matching as a matching task. However, since these matching approaches depend on static word embeddings without using contextual information to represent widgets and manually formulated matching functions, there are main limitations of these matching approaches when handling complex matching relations in apps. To address the limitations, we propose the first learning-based widget matching approach named TEMdroid ( TEst Migration) for test case migration. Unlike the existing approaches, TEMdroid uses BERT to capture contextual information and learns a matching model to match widgets. Additionally, to balance the significant imbalance between positive and negative samples in apps, we design a two-stage training strategy where we first train a hard-negative sample miner to mine hard-negative samples, and further train a matching model using positive samples and mined hard-negative samples. Our evaluation on 34 apps shows that TEM-droid is effective in event matching (i.e., widget matching and target event synthesis) and test case migration. For event matching, TEM-droid's Top1 accuracy is 76%, improving over 17% compared to baselines. For test case migration, TEMdroid's F1 score is 89%, also 7% improvement compared to the baseline approach.
AbstractList GUI test case migration is to migrate GUI test cases from a source app to a target app. The key of test case migration is widget matching. Recently, researchers have proposed various approaches by formulating widget matching as a matching task. However, since these matching approaches depend on static word embeddings without using contextual information to represent widgets and manually formulated matching functions, there are main limitations of these matching approaches when handling complex matching relations in apps. To address the limitations, we propose the first learning-based widget matching approach named TEMdroid ( TEst Migration) for test case migration. Unlike the existing approaches, TEMdroid uses BERT to capture contextual information and learns a matching model to match widgets. Additionally, to balance the significant imbalance between positive and negative samples in apps, we design a two-stage training strategy where we first train a hard-negative sample miner to mine hard-negative samples, and further train a matching model using positive samples and mined hard-negative samples. Our evaluation on 34 apps shows that TEM-droid is effective in event matching (i.e., widget matching and target event synthesis) and test case migration. For event matching, TEM-droid's Top1 accuracy is 76%, improving over 17% compared to baselines. For test case migration, TEMdroid's F1 score is 89%, also 7% improvement compared to the baseline approach.
Author Hao, Dan
Xie, Tao
Zhang, Lu
Ran, Dezhi
Zhang, Wenjie
Dou, Chengfeng
Zhang, Yakun
Zhu, Qihao
Author_xml – sequence: 1
  givenname: Yakun
  surname: Zhang
  fullname: Zhang, Yakun
  email: zhangyakun@stu.pku.edu.cn
  organization: MOE; SCS Peking University,Key Lab of HCST (PKU),Beijing,China
– sequence: 2
  givenname: Wenjie
  surname: Zhang
  fullname: Zhang, Wenjie
  email: zhang_wen_jie@pku.edu.cn
  organization: MOE; SCS Peking University,Key Lab of HCST (PKU),Beijing,China
– sequence: 3
  givenname: Dezhi
  surname: Ran
  fullname: Ran, Dezhi
  email: dezhiran@pku.edu.cn
  organization: MOE; SCS Peking University,Key Lab of HCST (PKU),Beijing,China
– sequence: 4
  givenname: Qihao
  surname: Zhu
  fullname: Zhu, Qihao
  email: zhuqh@pku.edu.cn
  organization: MOE; SCS Peking University,Key Lab of HCST (PKU),Beijing,China
– sequence: 5
  givenname: Chengfeng
  surname: Dou
  fullname: Dou, Chengfeng
  email: 2101111463@stu.pku.edu.cn
  organization: MOE; SCS Peking University,Key Lab of HCST (PKU),Beijing,China
– sequence: 6
  givenname: Dan
  surname: Hao
  fullname: Hao, Dan
  email: haodan@pku.edu.cn
  organization: MOE; SCS Peking University,Key Lab of HCST (PKU),Beijing,China
– sequence: 7
  givenname: Tao
  surname: Xie
  fullname: Xie, Tao
  email: taoxie@pku.edu.cn
  organization: MOE; SCS Peking University,Key Lab of HCST (PKU),Beijing,China
– sequence: 8
  givenname: Lu
  surname: Zhang
  fullname: Zhang, Lu
  email: zhanglucs@pku.edu.cn
  organization: MOE; SCS Peking University,Key Lab of HCST (PKU),Beijing,China
BookMark eNotj8tKA0EURFtRMMZZu3HRPzCxb99-4kqCxsAENwkuQz_HBp3I9Gz8e0d0VVRxKDjX5GI4DYmQW2ArACHvUVotGa5QcUTOz0hjtTWCMc04aHFOFiClaYFzeUWaWotnUqDUSuCCPHTJjUMZ-ta7miJ9K7FPE925KbzPK82nke5KP7rpt20OW7pPdaLrGa435DK7j5qa_1ySw_PTfv3Sdq-b7fqxax0onNqogo8xSKu4yBg481nZoJRximkFMmcRLEbthQhGZRG9RgdReB2DmcVwSe7-fktK6fg1lk83fh9htjCgAX8A1xxI9g
CODEN IEEPAD
ContentType Conference Proceeding
DBID 6IE
6IH
CBEJK
RIE
RIO
DOI 10.1145/3597503.3623322
DatabaseName IEEE Electronic Library (IEL) Conference Proceedings
IEEE Proceedings Order Plan (POP) 1998-present by volume
IEEE Xplore All Conference Proceedings
IEEE/IET Electronic Library (IEL) (UW System Shared)
IEEE Proceedings Order Plans (POP) 1998-present
DatabaseTitleList
Database_xml – sequence: 1
  dbid: RIE
  name: IEEE Electronic Library (IEL)
  url: https://ieeexplore.ieee.org/
  sourceTypes: Publisher
DeliveryMethod fulltext_linktorsrc
Discipline Computer Science
EISBN 9798400702174
EISSN 1558-1225
EndPage 840
ExternalDocumentID 10548171
Genre orig-research
GrantInformation_xml – fundername: National Natural Science Foundation of China
  grantid: 62232003
  funderid: 10.13039/501100001809
GroupedDBID -~X
.4S
.DC
29O
5VS
6IE
6IF
6IH
6IK
6IL
6IM
6IN
8US
AAJGR
AAWTH
ABLEC
ADZIZ
ALMA_UNASSIGNED_HOLDINGS
ARCSS
AVWKF
BEFXN
BFFAM
BGNUA
BKEBE
BPEOZ
CBEJK
CHZPO
EDO
FEDTE
I-F
IEGSK
IJVOP
IPLJI
M43
OCL
RIE
RIL
RIO
ID FETCH-LOGICAL-a163t-d6cbddc59624f3c20bf69c668a607615ff4c93d7b44c86f4db73a1d4b7dc85033
IEDL.DBID RIE
IngestDate Wed Aug 27 01:53:13 EDT 2025
IsPeerReviewed false
IsScholarly true
Language English
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-a163t-d6cbddc59624f3c20bf69c668a607615ff4c93d7b44c86f4db73a1d4b7dc85033
PageCount 13
ParticipantIDs ieee_primary_10548171
PublicationCentury 2000
PublicationDate 2024-April-14
PublicationDateYYYYMMDD 2024-04-14
PublicationDate_xml – month: 04
  year: 2024
  text: 2024-April-14
  day: 14
PublicationDecade 2020
PublicationTitle Proceedings / International Conference on Software Engineering
PublicationTitleAbbrev ICSE
PublicationYear 2024
Publisher ACM
Publisher_xml – name: ACM
SSID ssib054357643
ssib055306466
ssj0006499
Score 2.388406
Snippet GUI test case migration is to migrate GUI test cases from a source app to a target app. The key of test case migration is widget matching. Recently,...
SourceID ieee
SourceType Publisher
StartPage 828
SubjectTerms Context modeling
Data models
Deep learning
Graphical user interfaces
GUI testing
Software
Software and its engineering → Software testing and debugging
Software testing
Task analysis
Test migration
Training
Title Learning-based Widget Matching for Migrating GUI Test Cases
URI https://ieeexplore.ieee.org/document/10548171
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
link http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwlV09T8MwELWgYmAqH0V8ywOrSxw7diLGigJDqw6t6FY5tg91aVGb8vu5S1PowsCWRBmic3zv5S7vHmMPUoFzqQSB7MDhB4rJRWmDEkmQDqBAyEqhNpuww2E-nRajRqxea2FijPXPZ7FLh3UvPyz9hkpluMORX0tSjB9aa7Zird3LkyHu273ZUmSHYzRxlSYtG-T2zWwfqbNHhUw6S1QXE7hSZJ27Z65SY0u__c-nOmGdX5UeH_3gzyk7iIsz1t7ZNPBm156zp2aG6ocgyAr8nSRaFR9gEqbyE0faygdzmhlBZy-TNz5GqOA9vHndYZP-87j3KhrPBOGQWVUiGF-G4MlTR4PyaVKCKbwxuTNUscgAtC9UsKXWPjegQ2mVk0HjAvmcWpoXrLVYLuIl4xi9SEJdQEqhCwMOQpkFsEkRQJayuGIdCsbsczsWY7aLw_Uf12_YcYqMgFoxUt-yVrXaxDt25L-q-Xp1Xy_mNy_xnFQ
linkProvider IEEE
linkToHtml http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwlV09b8IwELUqWqmd6AdVv-uha2gcO06ijqgUVEAMoLIhx_ZVLIAg9Pf3LoSWpUO3JMoQneN7L3d59xh7EhKMiQQEyA4MfqDoNMgTJ4PQCQOQIWRFUJpNJINBOplkw0qsXmphvPflz2e-SYdlL98t7IZKZbjDkV8LUowfxkpF4VautXt9YkT-ZG-6FBniaEVspUrMGtl9Nd1HqPhZIpeOQ9nEFC4lmefu2auU6NKu__O5TlnjV6fHhz8IdMYO_Pyc1XdGDbzatxfspZqi-hkQaDn-QSKtgvcxDVMBiiNx5f0ZTY2gs7dxl48QLHgLb1432Lj9Omp1gso1ITDIrYrAaZs7Z8lVR4G0UZiDzqzWqdFUs4gBlM2kS3KlbKpBuTyRRjiFS2RTampestp8MfdXjGP0PEl1AUmFyjQYcHnsIAkzByIX2TVrUDCmy-1gjOkuDjd_XH9kx51RvzftdQfvt-wkQn5AjRmh7litWG38PTuyX8VsvXooF_Ybhhyfmw
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=proceeding&rft.title=Proceedings+%2F+International+Conference+on+Software+Engineering&rft.atitle=Learning-based+Widget+Matching+for+Migrating+GUI+Test+Cases&rft.au=Zhang%2C+Yakun&rft.au=Zhang%2C+Wenjie&rft.au=Ran%2C+Dezhi&rft.au=Zhu%2C+Qihao&rft.date=2024-04-14&rft.pub=ACM&rft.eissn=1558-1225&rft.spage=828&rft.epage=840&rft_id=info:doi/10.1145%2F3597503.3623322&rft.externalDocID=10548171