Case Study

RTTS Assists Power & Energy Firm
Through Chatbot QA Automation

Chatbot

RTTS Assists Power & Energy Firm
Through Chatbot QA Automation

Background

One of the largest power and energy companies in the United States decided to implement a chatbot interface on its website, providing customers with efficient self-service options for digital payments and account management, among other services. The chatbot uses Natural Language Processing (NLP) to interpret human inputs, offering tailored responses, support, and recommendations. 

Ensuring the chatbot’s responses were accurate, reliable and of high quality required dedicated RTTS testing resources to evaluate its functionality across various scenarios and user interactions. To reduce the prolonged timelines associated with manual testing, RTTS test engineers developed a solution to streamline the testing process while maintaining accuracy, ultimately reducing the time to bring new features and updates to production. 

Challenges

The power and energy company faced several significant challenges in their manual testing efforts: 

  • Scalability: Manual testing became impractical due to the vast number of possible unique user interactions and scenarios possible with chatbots. The challenge of manually covering all possible test cases across different platforms, such as web browsers and mobile, was significant. 
  • Resource Demands: Manual testing, due to its inherent nature, is prone to human errors. Initially, testers manually input various user responses, analyzed the chatbot’s reactions, and documented their findings. This process led to increased testing costs and extended testing cycles. Identifying issues during testing often necessitated multiple rounds of revisions and testing, consuming more time and resources than initially planned.
  • Limited Coverage: It was crucial to consider edge cases, including uncommon user inputs, which may have been overlooked in manual testing. Neglecting those cases increased the risk of undetected issues or inaccuracies in the chatbot responses, underscoring the need for a more comprehensive testing approach.
  • Regression Testing: As the chatbot functionality evolved and new features were added, regression testing became more complex and labor-intensive. Existing functionality needed to be retested to ensure it remained unaffected by any updates. Manual regression testing included many repetitive tasks that were prone to oversight or human error.

Strategy

To tackle the challenges that arose from manual chatbot testing, RTTS engineers implemented an automation framework using Microsoft Test Framework (MTF) and Selenium WebDriver. These tools were used to automate regression testing, leading to improved efficiency, scalability, and reliability in the testing outcomes. The main goal was to analyze chatbot responses by automating data validations and replicating user behavior through the user interface.

Micorsoft selenium

Solution

By implementing MTF and leveraging Selenium WebDriver for chatbot testing, RTTS addressed the challenges of manual testing and aligned with the power company’s goal of delivering a reliable, user-centric chatbot solution. The approach brought significant benefits, such as increased efficiency, improved test coverage, and enhanced scalability. Key components of the strategy included: 

  • Selenium WebDriver: Selenium is a widely used open-source tool that enables testers to automate interactions with web elements such as input fields, buttons, and dropdown menus. The tool mimics user behavior, validates chatbot responses and performs data validations. 
  • Reusable Test Scripts: Automation with MTF and Selenium WebDriver enabled RTTS engineers to create reusable test scripts while also ensuring quick adaptation for evolving features and requirements without compromising efficiency. By creating shared methods for repetitive steps and validations they provided a secure foundation for the scalability of the chatbot testing solution. 
  • Cross Platform Testing: The automation framework contained cross-platform capabilities to automate scenarios and ensure consistent behavior and performance across web browsers, operating systems, and devices. 
  • Mobile Testing: The solution offered benefits for mobile responsive applications, including chatbots, allowing emulation of behavior on various devices, including Android and iOS. 
  • API Integration: The chatbot uses APIs to access information from other services, in real time, and perform actions based on the user’s command. The automated test framework allowed for validating these integrations by making API calls to corresponding services used by the bot, ensuring that the chatbot performs, interprets, and presents actions correctly. The framework’s ability to make API calls also allows it to gather information to generate test data, which can be fed dynamically into the test executions to simulate various scenarios and edge cases, improving overall robustness. 
  • Integration with CI/CD Pipelines: Integration of MTF and Selenium WebDriver enabled the rapid execution of chatbot tests as part of the development pipeline. This provides the opportunity for accelerated identification of issues and rapid iterations, enhancing the efficiency of our chatbot development process. 

Benefits

Implementing test automation for the power company’s chatbot expanded test coverage and streamlined the testing process. RTTS engineers were instrumental in ensuring the reliability and accuracy of the solution. This led to a direct positive impact on customer satisfaction and has been one of the main driving forces behind the energy company’s business success. 

The automation enabled rapid execution of a suite of 200 tests, repeated multiple times within minutes, providing a safety net for troubleshooting deployment issues during production releases. Without this framework, streamlined releases would not have been feasible as any issues would have required a rollback until thorough manual testing could be completed. 

RTTS’ automation of mobile responsive testing has significantly reduced the time investment by executing scenarios that require a mobile environment. This has freed up valuable resources and allowed the client’s team to focus on other critical tasks, thereby enhancing overall productivity. 

Above is a visual representation of the significant increase in testing coverage observed over four days. The chart illustrates how RTTS engineers helped to increase testing coverage and reduced execution time by a factor of 4.

About RTTS:

RTTS is the premier pure-play QA & Testing organization that specializes in Test Automation. Headquartered in New York, RTTS has had 1,000+ successful engagements at over 700 corporations since 1996.

Rtts Logo