Network


Latest external collaboration on country level. Dive into details by clicking on the dots.

Hotspot


Dive into the research topics where Sonal Mahajan is active.

Publication


Featured researches published by Sonal Mahajan.


automated software engineering | 2014

Finding HTML presentation failures using image comparison techniques

Sonal Mahajan; William G. J. Halfond

Presentation failures in web applications can negatively affect an applications usability and user experience. To find such failures, testers must visually inspect the output of a web application or exhaustively specify invariants to automatically check a pages correctness. This makes finding presentation failures labor intensive and error prone. In this paper, we present a new automated approach for detecting and localizing presentation failures in web pages. To detect presentation failures, our approach uses image processing techniques to compare a web page and its oracle. Then, to localize the failures, our approach analyzes the page with respect to its visual layout and identifies the HTML elements likely to be responsible for the failure. We evaluated our approach on a set of real-world web applications and found that the approach was able to accurately detect failures and identify the faulty HTML elements.


international conference on software testing verification and validation | 2016

Using Visual Symptoms for Debugging Presentation Failures in Web Applications

Sonal Mahajan; Bailan Li; Pooyan Behnamghader; William G. J. Halfond

Presentation failures in a website can undermine its success by giving users a negative perception of the trustworthiness of the site and the quality of the services it delivers. Unfortunately, existing techniques for debugging presentation failures do not provide developers with automated and broadly applicable solutions for finding the sites faulty HTML elements and CSS properties. To address this limitation, we propose a novel automated approach for debugging web sites that is based on image processing and probabilistic techniques. Our approach first builds a model that links observable changes in the web sites appearance to faulty elements and styling properties. Then using this model, our approach predicts the elements and styling properties most likely to cause the observed failure for the page under test and reports these to the developer. In evaluation, our approach was more accurate and faster than prior techniques for identifying faulty elements in a website.


international conference on software testing verification and validation | 2016

Detecting and Localizing Internationalization Presentation Failures in Web Applications

Abdulmajeed Alameer; Sonal Mahajan; William G. J. Halfond

Web applications can be easily made available to an international audience by leveraging frameworks and tools for automatic translation and localization. However, these automated changes can distort the appearance of web applications since it is challenging for developers to design their websites to accommodate the expansion and contraction of text after it is translated to another language. Existing web testing techniques do not support developers in checking for these types of problems and manually checking every page in every language can be a labor intensive and error prone task. To address this problem, we introduce an automated technique for detecting when a web pages appearance has been distorted due to internationalization efforts and identifying the HTML elements or text responsible for the observed problem. In evaluation, our approach was able to detect internationalization problems in a set of 54 web applications with high precision and recall and was able to accurately identify the underlying elements in the web pages that led to the observed problem.


international symposium on software testing and analysis | 2017

Automated repair of layout cross browser issues using search-based techniques

Sonal Mahajan; Abdulmajeed Alameer; Phil McMinn; William G. J. Halfond

A consistent cross-browser user experience is crucial for the success of a website. Layout Cross Browser Issues (XBIs) can severely undermine a website’s success by causing web pages to render incorrectly in certain browsers, thereby negatively impacting users’ impression of the quality and services that the web page delivers. Existing Cross Browser Testing (XBT) techniques can only detect XBIs in websites. Repairing them is, hitherto, a manual task that is labor intensive and requires significant expertise. Addressing this concern, our paper proposes a technique for automatically repairing layout XBIs in websites using guided search-based techniques. Our empirical evaluation showed that our approach was able to successfully fix 86% of layout XBIs reported for 15 different web pages studied, thereby improving their cross-browser consistency.


international symposium on software testing and analysis | 2017

XFix: an automated tool for the repair of layout cross browser issues

Sonal Mahajan; Abdulmajeed Alameer; Phil McMinn; William G. J. Halfond

Differences in the rendering of a website across different browsers can cause inconsistencies in its appearance and usability, resulting in Layout Cross Browser Issues (XBIs). Such XBIs can negatively impact the functionality of a website as well as users’ impressions of its trustworthiness and reliability. Existing techniques can only detect XBIs, and therefore require developers to manually perform the labor intensive task of repair. In this demo paper we introduce our tool, XFix, that automatically repairs layout XBIs in web applications. To the best of our knowledge, XFix is the first automated technique for generating XBI repairs.


Software Testing, Verification & Reliability | 2017

Detecting display energy hotspots in Android apps

Mian Wan; Yuchen Jin; Ding Li; Jiaping Gui; Sonal Mahajan; William G. J. Halfond

Energy consumption of mobile apps has become an important consideration as the underlying devices are constrained by battery capacity. Display represents a significant portion of an apps energy consumption. However, developers lack techniques to identify the user interfaces in their apps for which energy needs to be improved. In this paper, we present a technique for detecting display energy hotspots - user interfaces of a mobile app whose energy consumption is greater than optimal. Our technique leverages display power modeling and automated display transformation techniques to detect these hotspots and prioritize them for developers. In an evaluation on a set of popular Android apps, our technique was very accurate in both predicting energy consumption and ranking the display energy hotspots. Our approach was also able to detect display energy hotspots in 398 Android market apps, showing its effectiveness and the pervasiveness of the problem. These results indicate that our approach represents a potentially useful technique for helping developers to detect energy related problems and reduce the energy consumption of their mobile apps.


international conference on software engineering | 2018

Automated repair of mobile friendly problems in web pages

Sonal Mahajan; Negarsadat Abolhassani; Phil McMinn; William G. J. Halfond

Mobile devices have become a primary means of accessing the Internet. Unfortunately, many websites are not designed to be mobile friendly. This results in problems such as unreadable text, cluttered navigation, and content over owing a devices viewport; all of which can lead to a frustrating and poor user experience. Existing techniques are limited in helping developers repair these mobile friendly problems. To address this limitation of prior work, we designed a novel automated approach for repairing mobile friendly problems in web pages. Our empirical evaluation showed that our approach was able to successfully resolve mobile friendly problems in 95% of the evaluation subjects. In a user study, participants preferred our repaired versions of the subjects and also considered the repaired pages to be more readable than the originals.


international conference on software testing verification and validation | 2018

Automated Repair of Internationalization Presentation Failures in Web Pages Using Style Similarity Clustering and Search-Based Techniques

Sonal Mahajan; Abdulmajeed Alameer; Phil McMinn; William G. J. Halfond

Internationalization enables companies to reach a global audience by adapting their websites to locale specific language and content. However, such translations can often introduce Internationalization Presentation Failures (IPFs) — distortions in the intended appearance of a website. It is challenging for developers to design websites that can inherently adapt to varying lengths of text from different languages. Debugging and repairing IPFs is complicated by the large number of HTML elements and CSS properties that define a web pages appearance. Tool support is also limited as existing techniques can only detect IPFs, with the repair remaining a labor intensive manual task. To address this problem, we propose a search-based technique for automatically repairing IPFs in web applications. Our empirical evaluation showed that our approach was able to successfully resolve 98% of the reported IPFs for 23 real-world web pages. In a user study, participants rated the visual quality of our fixes significantly higher than the unfixed versions.


international conference on software testing verification and validation | 2015

Detection and Localization of HTML Presentation Failures Using Computer Vision-Based Techniques

Sonal Mahajan; William G. J. Halfond


international conference on software testing verification and validation | 2015

WebSee: A Tool for Debugging HTML Presentation Failures

Sonal Mahajan; William G. J. Halfond

Collaboration


Dive into the Sonal Mahajan's collaboration.

Top Co-Authors

Avatar

William G. J. Halfond

University of Southern California

View shared research outputs
Top Co-Authors

Avatar

Abdulmajeed Alameer

University of Southern California

View shared research outputs
Top Co-Authors

Avatar

Phil McMinn

University of Sheffield

View shared research outputs
Top Co-Authors

Avatar

Bailan Li

University of Southern California

View shared research outputs
Top Co-Authors

Avatar

Ding Li

University of Southern California

View shared research outputs
Top Co-Authors

Avatar

Jiaping Gui

University of Southern California

View shared research outputs
Top Co-Authors

Avatar

Mian Wan

University of Southern California

View shared research outputs
Top Co-Authors

Avatar

Negarsadat Abolhassani

University of Southern California

View shared research outputs
Top Co-Authors

Avatar

Pooyan Behnamghader

University of Southern California

View shared research outputs
Top Co-Authors

Avatar

Yuchen Jin

University of Southern California

View shared research outputs
Researchain Logo
Decentralizing Knowledge