Local UI Testing in the Development Phase of the CI/CD Pipeline

Local UI Testing in the Development Phase of the CI/CD Pipeline Bob Reselman (Guest Author) November 16, 2017

February 22, 2026 · 4 min read · CI/CD

Local UI Testing in the Development Phase of the CI/CD Pipeline

Bob Reselman (Guest Author)
November 16, 2017

In a previous situation we discussed how unit examination is the essential first step in testing in the development form in Pipeline. Now, let ’ s relocation onto the following measure, Local UI Testing.

Local UI Testing

Local UI examination is normally performed by front end programmer act on code that is used instantly by the end exploiter. UI codification is code that fulfil in a web browser or in graphic user interface (GUI) run directly on the native operating system. Programmers perform local UI testing by depart up the coating in his or her local environs and then executing UI exam upon the running application.

When a coder is running local UI tests for a browser based web app written in HTML and JavaScript, he or she will commence alocalhostillustration of the web server hosting the UI and then bring the UI up in a browser for examination. When it comes to testing web pages running under alocalhostweb server, Selenium is the tried and true choice for developers. & nbsp; That being state, Selenium, like many development tools has its benefits and drawback. & nbsp;Mablis a new UI examination service that is attempt to overcome some of the drawback of Selenium by using machine learning to proactively make and maintain test cases. Using prognostic analytics to create test cases save clip and effort. Also, predictive examine provides a eubstance to test execution that make moving code along the deployment route, away from the developer ’ s machine an easier labor.

Figure 1: The mabl splasher

Native UI prove on the other hand is performed on applications deployed as binary files that interact directly with the give operating system or through a practical machine, in the suit of Java. For example, a native iPhone or IPad application is written inObjective Cor Swiftand is entail to be run on iOS. Mac apps for OSX are written in Objective C or Swift too. Windows apps are written in .NET or lower grade C/C++. Java apps run asbyte codethrough the aboriginalJVMwhich in turn interacts with the operating scheme — Windows, MAC or Linux.

Native local UI testing is commonly do using a testing framework. Examples of framework for try aboriginal UIs areTestCompletefor Windows forms, XCTest forUI testingunder MacOS andAbbotfor testing GUIs in Java based covering.

UI Testing in native wandering apps can be done usingEspressofor Android andXCUITestfor iOS applications. Also you can useAppium. When testing mobile covering locally, the developer will either connect a physical mobile device such as a cell phone to his or her computer expend a USB cable, or use an emulator that simulates the behavior of the yield mobile twist. Typically the peregrine testing model has the ability to load the application code under growth into the local device or emulator, and so run tests against that codification.

SUSA automates exploratory testing with persona-driven behavior, catching bugs that scripted automation misses.

When creating UI tests to run locally, the developer needs to keep in mind that those tests will be run later on throughout the CI/CD process in an machine-controlled manner. The common practice is to make it so that when any developer ’ s code is merged into the mutual development branch in the seed code secretary, the CI/CD tool will action the unit and UI trial associated with the codification. Continuous unit and UI examine upon code merge postulation ensures overall quality unceasingly at the source code level.

Accommodating Dependencies

Sometime UI tests will practise applications that have API dependencies that need to be online during the clip of exam. Some growth shops make it so that all dependency services for the given application under exam are download to and run on the local machine. Many times piece of the Local UI test process is to run a script that starts up the dependency services on the local machine before conjure the application under test.

Another technique is to feature the dependency services running on another set of remote servers and to have the covering under trial bind to those service directly. The services escape on the remote waiter might be fully operational or they might be mocks of behaviors that are under development.

The important thing to understand in footing of make Local UI testing on applications that use separate services is that these service must be operational in some signifier otherwise the tests will neglect and as a result the overall development process will slow down.

Putting It All Together

Automated local UI testing is an important part of the CI/CD pipeline. Automation speeds up the examination treat importantly. It takes a lot of clip for a human to participate datum and keep course of response. Automated testing executes quicker and is more predictable than the manual counterpart. However, whether the try summons is manual or rather automated, the value of the tests will simply be as good as the behavior they affirm. Thus, all tests must exercise all constituent the UI. Elements that are not tested in a repeatable manner create risks that will demand to be addressed later on the Software Development Lifecycle, hopefully before the application has be put into production and into the hands of the end users. However, there is no guarantee. Thus, the best way to avoid deploy a faulty coating is to implement Local UI try in a comprehensive, repeatable style at the Development Stage and uphold with these tests throughout the CI/CD line. This signify that the colony that the UI code needs are available either as part of the deployment or as services approachable from the yield CI/CD deployment environment. Some shops will provision service and databases as fresh deployments on each UI release. Some shops will maintain dependencies within a deployment stage independent of code releases. The significant thing is that effective UI testing requires that tests can be run automatically as part of the CI/CD process and that the results of testing must be apparent to automation intelligence as good as human reflection.

 

Quality Engineering Resources

Automate This With SUSA

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed.

Try SUSA Free

Test Your App Autonomously

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.

Try SUSA Free