• Last Update 2026-01-02 17:24:00

Behind the Scenes at CodeGen: AI for Better Software Quality

Business

While many companies talk about the potential of Artificial Intelligence (AI), CodeGen International (Pvt) Ltd, a pioneering technology company in Sri Lanka, is turning that potential into tangible results for its clients today. The company is the first in the nation to directly translate AI advancements into improved software reliability and service quality.

At the heart of this transformation is CodeGen’s Quality Assurance (QA) team, the guardians who ensure that the software used by clients is seamless, reliable and fundamentally bug-free. Using intelligent automation, CodeGen QA team is able to work faster and more accurately than ever.

An Innovation Born of Necessity

Software testing is traditionally one of the most time-consuming stages of development. It requires QAs to manually verify every button, form and reservation flow to ensure a bug-free experience. To keep up, our team originally relied on industry-standard tools like Selenium and later Katalon. However, the landscape shifted when external subscription costs increased massively. Faced with increasingly expensive fees, CodeGen’s management reached a crossroads; continue paying for third-party tools or take a bold leap and build its own.

CodeGen chose to build. That vision was given a name, “AutoFlex.”

Navigating the Road to Breakthrough

Deciding to develop AutoFlex in-house was a massive leap of faith. It was like trying to rebuild an engine while the car was still racing at full speed. The obstacles seemed overwhelming, yet the mission was clear: create a tool that wasn't just a replacement but an upgrade.

To succeed, the CodeGen QA team had to overcome several real-world challenges;

  • The Balancing Act :- With limited resources, the team had to design this brand-new framework while simultaneously managing a full workload of existing client projects.
  • The Rookie Revolution :- Instead of searching for a team of experts, CodeGen turned to "Tech Rookies" who are fresh, eager talent. To bridge the experience gap, these young graduates were empowered with AI tools like ChatGPT and Claude to build complex code libraries in record time.
  • Global Mentorship :- The CodeGen QA team didn’t work in isolation; they collaborated with the global Selenium IDE development community to ensure AutoFlex features met international standards.
  • Simplicity by Design :- While the technology "under the hood" of Autoflex is incredibly complex, the CodeGen QA team built a user-friendly layer over it. While the software itself is incredibly sophisticated, it was built to be used by everyone. AutoFlex is coded using simple keywords that even a non-technical person can easily identify. Actions are defined in everyday terms like “Click,” “Navigate to URL,” “Close Browser” and “Set Text”. This means anyone in the organization can run advanced tests without needing to write or understand difficult computer code.

Today, what began as a response to a financial burden has become a technical triumph. AutoFlex has slashed test script creation time by 60% compared to traditional methods, turning a challenge into a massive competitive gain for Sri Lanka’s tech industry.
 

Supercharging the Testing Lifecycle

CodeGen reimagined the typical QA lifecycle, from review and analysis to client delivery, by integrating AI at every step. In this new model, a process that once took 8-10 hours manually can now be completed in just 2-1.5 hours.

AutoFlex stands out due to several high-tech, intelligent capabilities designed for the modern developer;

  • The Self-Fixing Script

In fast-paced development environments, the "look" and interface of a website are constantly evolving. Traditionally, even a minor update, like renaming a button or moving a search bar would cause automated tests to crash because they could no longer "find" the element.

Healenium uses AI and Machine Learning to recognize these User Interface (UI) updates in real-time. Instead of failing because of a visual change, the script intelligently identifies the new element, "heals" itself and continues the test without interruption. Once the run is complete, it provides a detailed report and screenshots showing exactly what was modified and how it was handled. This ensures that the testing process keeps moving at full speed, even as the software grows and changes.

  • Smart Wait Option: The Intelligent Pause
    To avoid the common pitfall of "static delays", where a script waits for a fixed amount of time regardless of speed—AutoFlex uses a dynamic Smart Wait mechanism. The script waits only as long as an element takes to load. This eliminates unnecessary idle time, reduces runtime failures and significantly boosts overall script efficiency.
  • Smart Locator: Precision Identification

This is another enhancement to AutoFlex currently being implemented. The objective of this feature is to further reduce runtime errors and ensure that tests remain stable and accurate, even when a page's underlying structure shifts slightly.

  • Comprehensive Testing Toolkit

AutoFlex is a versatile powerhouse that supports Visual Testing, Accessibility Testing and seamless CI/CD integration. This ensures that software is not only functional but also inclusive and ready for non-stop delivery.
 



 

The Future with Lumos Integration

AutoFlex is currently being integrated with Lumos, CodeGen's AI-assisted PDLC platform. This collaboration will allow test suites and complex code to be generated automatically through AI. The ultimate goal is to use this synergy to eventually generate up to 80% of all automation scripts, transforming manual coding into a high-speed, intelligent generation process.
 

A Cultural Shift: Doing More With Less

These AI-driven processes have not replaced people — they have unlocked them. QAs now spend less time on repetitive tasks and more time on meaningful work like analysing customer needs, improving quality and supporting new product innovation.

As Head of QA, Ashani Halpita, explains:

A person with long black hair wearing a red dress

AI-generated content may be incorrect.

“Integrating AI into our QA ecosystem has fundamentally changed the way we operate. Complex testing activities that once consumed hours are now executed in few minutes, with unprecedented precision and consistency. AI has not only increased our team’s productivity but has also strengthened defect discovery and test coverage and empowered us to deliver reliable, high-quality releases with confidence.”


 

A New Standard for Sri Lankan Innovation

CodeGen didn’t just adopt AI; it pioneered it from the ground up. By building an entire AI-powered ecosystem right here in Sri Lanka, the company has set a bold new benchmark for the local technology industry.

Aiming to empower the wider tech community, CodeGen also hopes to eventually open access to the AutoFlex tool for other technology companies through its Lumos platform, fostering a more collaborative and advanced local landscape.

The impact of this homegrown innovation is clear; superior software is now delivered faster, with far fewer errors and customers are the direct winners of these efficiency gains. As Sri Lanka steps into an AI-driven future, CodeGen continues to lead the charge, proving that world-class innovation is happening right here at home.

You can share this post!

Comments
  • Still No Comments Posted.

Leave Comments