2,289 research outputs found

    ReDeCheck: An Automatic Layout Failure Checking Tool for Responsively Designed Web Pages

    Get PDF
    Since people frequently access websites with a wide variety of devices (e.g., mobile phones, laptops, and desktops), developers need frameworks and tools for creating layouts that are useful at many viewport widths. While responsive web design (RWD) principles and frameworks facilitate the development of such sites, there is a lack of tools supporting the detection of failures in their layout. Since the quality assurance process for responsively designed websites is often manual, time-consuming, and error-prone, this paper presents ReDeCheck, an automated layout checking tool that alerts developers to both potential unintended regressions in responsive layout and common types of layout failure. In addition to summarizing ReDeCheck’s benefits, this paper explores two different usage scenarios for this tool that is publicly available on GitHub

    Automated Layout Failure Detection for Responsive Web Pages Without an Explicit Oracle

    Get PDF
    As the number and variety of devices being used to access the World Wide Web grows exponentially, ensuring the correct presentation of a web page, regardless of the device used to browse it, is an important and challenging task. When developers adopt responsive web design (RWD) techniques, web pages modify their appearance to accommodate a device’s display constraints. However, a current lack of automated support means that presentation failures may go undetected in a page’s layout when rendered for different viewport sizes. A central problem is the difficulty in providing an automated “oracle” to validate RWD layouts against, meaning that checking for failures is largely a manual process in practice, which results in layout failures in many live responsive web sites. This paper presents an automated failure detection technique that checks the consistency of a responsive page’s layout across a range of viewport widths, obviating the need for an explicit oracle. In an empirical study, this method found failures in 16 of 26 real-world production pages studied, detecting 33 distinct failures in total

    Automatic Identification of Presentation Failures in Responsive Web Pages

    Get PDF
    With the increasing number and variety of devices being used to access the World Wide Web, providing a good browsing experience to all users, regardless of device, is a critical task. To do this, many web developers now use responsive web design (RWD) to build web pages that provide a bespoke layout tailored to the specific characteristics of the device in use, normally the viewport width. However, implementing responsive web pages is an error-prone task, as web page elements can behave in unpredictable ways as the viewport expands and contracts. This leads to presentation failures — errors in the visual appearance of the web page. As well-designed responsive web pages can have an array of benefits, identifying presentation failures quickly and accurately is an important task. Unfortunately, current approaches to detecting presentation failures in web pages are insufficient. The huge number of different viewport widths that require support makes thorough checking of the layout on all devices infeasible. Furthermore, the current range of developer tools only provide limited support for testing responsive web pages. This thesis tackles these problems by making the following contributions. First, it proposes the responsive layout graph (RLG), a model of the dynamic layout of modern responsive web pages. Then, it explores how the RLG can be used to automatically detect potentially unseen side-effects of small changes to the source code of a web page. Next, it investigates the detection of several common types of layout failures, leveraging implicit oracle information in place of an explicit oracle. Experiments showed both the approach for detecting potentially unseen side-effects and the approach for identifying common types of layout failure to be highly effective. The manual effort required by the user is further reduced by an approach that automatically grouped related failures together. Finally, a case study of 33 real-world responsive layout failures investigates how difficult such failures are to fix. These approaches have all been implemented into a software tool, ReDeCheck, which helps web developers create better responsive web pages

    Automatically identifying potential regressions in the layout of responsive web pages

    Get PDF
    Providing a good user experience on the ever-increasing number and variety of devices being used to browse the web is a difficult, yet critical, task. With Responsive Web Design (RWD), front-end web developers design web pages so that they dynamically resize and rearrange content to best fit the dimensions of a device’s screen. However, when making code modifications to a responsive page, developers can easily introduce regressions from the correct layout that have detrimental effects at unpredictable screen sizes. For instance, the source code change that a developer makes to improve the layout at one screen size may obscure a page’s content at other sizes. Current approaches to testing are often insufficient because they rely on limited tools and error-prone manual inspections of a web page. As such, many unintended regressions in web page layout often go undetected and ultimately manifest in production web sites. To address the challenge of detecting regressions in responsive web pages, this paper presents an automated approach that extracts the responsive layout of two versions of a page and compares them, alerting developers to the differences in layout that they may wish to investigate further. We implemented the approach and empirically evaluated it on 15 real-world responsive web pages. Leveraging code mutations that a tool automatically injected into the pages as a systematic simulation of developer changes, the experiments show that the approach was highly effective. When compared with manual and automated baseline testing techniques, it detected 12.5% and 18.75% more injected changes, respectively. Along with identifying the best parameters for the method that extracts the responsive layout, the experiments show that the approach surpasses the baselines across changes that vary in their impact, but works particularly well for subtle, hard-to-detect mutants, showing the benefits of automatically identifying regressions in web page layout

    Automated visual classification of DOM-based presentation failure reports for responsive web pages

    Get PDF
    Since it is common for the users of a web page to access it through a wide variety of devices—including desktops, laptops, tablets and phones—web developers rely on responsive web design (RWD) principles and frameworks to create sites that are useful on all devices. A correctly implemented responsive web page adjusts its layout according to the viewport width of the device in use, thereby ensuring that its design suitably features the content. Since the use of complex RWD frameworks often leads to web pages with hard‐to‐detect responsive layout failures (RLFs), developers employ testing tools that generate reports of potential RLFs. Since testing tools for responsive web pages, like ReDeCheck, analyse a web page representation called the Document Object Model (DOM), they may inadvertently flag concerns that are not human visible, thereby requiring developers to manually confirm and classify each potential RLF as a true positive (TP), false positive (FP), or non‐observable issue (NOI)—a process that is time consuming and error prone. The conference version of this paper presented Viser, a tool that automatically classified three types of RLFs reported by ReDeCheck. Since Viser was not designed to automatically confirm and classify two types of RLFs that ReDeCheck's DOM‐based analysis could surface, this paper introduces Verve, a tool that automatically classifies all RLF types reported by ReDeCheck. Along with manipulating the opacity of HTML elements in a web page, as does Viser, the Verve tool also uses histogram‐based image comparison to classify RLFs in web pages. Incorporating both the 25 web pages used in prior experiments and 20 new pages not previously considered, this paper's empirical study reveals that Verve's classification of all five types of RLFs frequently agrees with classifications produced manually by humans. The experiments also reveal that Verve took on average about 4 s to classify any of the RLFs among the 469 reported by ReDeCheck. Since this paper demonstrates that classifying an RLF as a TP, FP, or NOI with Verve, a publicly available tool, is less subjective and error prone than the same manual process done by a human web developer, we argue that it is well‐suited for supporting the testing of complex responsive web pages

    Automated Repair of Layout Cross Browser Issues Using Search-Based Techniques

    Get PDF
    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

    Reverse Engineering and Testing of Rich Internet Applications

    Get PDF
    The World Wide Web experiences a continuous and constant evolution, where new initiatives, standards, approaches and technologies are continuously proposed for developing more effective and higher quality Web applications. To satisfy the growing request of the market for Web applications, new technologies, frameworks, tools and environments that allow to develop Web and mobile applications with the least effort and in very short time have been introduced in the last years. These new technologies have made possible the dawn of a new generation of Web applications, named Rich Internet Applications (RIAs), that offer greater usability and interactivity than traditional ones. This evolution has been accompanied by some drawbacks that are mostly due to the lack of applying well-known software engineering practices and approaches. As a consequence, new research questions and challenges have emerged in the field of web and mobile applications maintenance and testing. The research activity described in this thesis has addressed some of these topics with the specific aim of proposing new and effective solutions to the problems of modelling, reverse engineering, comprehending, re-documenting and testing existing RIAs. Due to the growing relevance of mobile applications in the renewed Web scenarios, the problem of testing mobile applications developed for the Android operating system has been addressed too, in an attempt of exploring and proposing new techniques of testing automation for these type of applications

    A novel framework for enhancing marine dual fuel engines environmental and safety performance via digital twins

    Get PDF
    The Internet of Things (IoT) advent and digitalisation has enabled the effective application of the digital twins (DT) in various industries, including shipping, with expected benefits on the systems safety, efficiency and environmental footprint. The present research study establishes a novel framework that aims to optimise the marine DF engines performance-emissions trade-offs and enhance their safety, whilst delineating the involved interactions and their effect on the performance and safety. The framework employs a DT, which integrates a thermodynamic engine model along with control function and safety systems modelling. The DT was developed in GT-ISE© environment. Both the gas and diesel operating modes are investigated under steady state and transient conditions. The engine layout is modified to include Exhaust Gas Recirculation (EGR) and Air Bypass (ABP) systems for ensuring compliance with ‘Tier III’ emissions requirements. The optimal DF engine settings as well as the EGR/ABP systems settings for optimal engine efficiency and reduced emissions are identified in both gas and diesel modes, by employing a combination of optimisation techniques including multi-objective genetic algorithms (MOGA) and Design of Experiments (DoE) parametric runs. This study addresses safety by developing an intelligent engine monitoring and advanced faults/failure diagnostics systems, which evaluates the sensors measurements uncertainty. A Failure Mode Effects and Analysis (FMEA) is employed to identify the engine safety critical components, which are used to specify operating scenarios for detailed investigation with the developed DT. The integrated DT is further expanded, by establishing a Faulty Operation Simulator (FOS) to simulate the FMEA scenarios and assess the engine safety implications. Furthermore, an Engine Diagnostics System (EDS) is developed, which offers intelligent engine monitoring, advanced diagnostics and profound corrective actions. This is accomplished by developing and employing a Data-Driven (DD) model based on Neural Networks (NN), along with logic controls, all incorporated in the EDS. Lastly, the manufacturer’s and proposed engine control systems are combined to form an innovative Unified Digital System (UDS), which is also included in the DT. The analysis of marine (DF) engines with the use of an innovative DT, as presented herein, is paving the way towards smart shipping.The Internet of Things (IoT) advent and digitalisation has enabled the effective application of the digital twins (DT) in various industries, including shipping, with expected benefits on the systems safety, efficiency and environmental footprint. The present research study establishes a novel framework that aims to optimise the marine DF engines performance-emissions trade-offs and enhance their safety, whilst delineating the involved interactions and their effect on the performance and safety. The framework employs a DT, which integrates a thermodynamic engine model along with control function and safety systems modelling. The DT was developed in GT-ISE© environment. Both the gas and diesel operating modes are investigated under steady state and transient conditions. The engine layout is modified to include Exhaust Gas Recirculation (EGR) and Air Bypass (ABP) systems for ensuring compliance with ‘Tier III’ emissions requirements. The optimal DF engine settings as well as the EGR/ABP systems settings for optimal engine efficiency and reduced emissions are identified in both gas and diesel modes, by employing a combination of optimisation techniques including multi-objective genetic algorithms (MOGA) and Design of Experiments (DoE) parametric runs. This study addresses safety by developing an intelligent engine monitoring and advanced faults/failure diagnostics systems, which evaluates the sensors measurements uncertainty. A Failure Mode Effects and Analysis (FMEA) is employed to identify the engine safety critical components, which are used to specify operating scenarios for detailed investigation with the developed DT. The integrated DT is further expanded, by establishing a Faulty Operation Simulator (FOS) to simulate the FMEA scenarios and assess the engine safety implications. Furthermore, an Engine Diagnostics System (EDS) is developed, which offers intelligent engine monitoring, advanced diagnostics and profound corrective actions. This is accomplished by developing and employing a Data-Driven (DD) model based on Neural Networks (NN), along with logic controls, all incorporated in the EDS. Lastly, the manufacturer’s and proposed engine control systems are combined to form an innovative Unified Digital System (UDS), which is also included in the DT. The analysis of marine (DF) engines with the use of an innovative DT, as presented herein, is paving the way towards smart shipping

    Automated repair of mobile friendly problems in web pages

    Get PDF
    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 overflowing a device's 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
    • 

    corecore