Hanes

Hanes is a globally recognized apparel brand known for its comfortable, durable, and affordable clothing, including underwear, T-shirts, and activewear.

Overview

Hanes is a well-established American apparel brand known for its comfortable, high-quality clothing. The company offers a wide range of products, including underwear, T-shirts, bras, panties, and activewear for men, women, and children. Hanes is recognised for its commitment to comfort, quality, and value and has a strong reputation for producing durable and reliable everyday wear. The brand is also noted for its eco-friendly practices and sustainability initiatives.

About the Project

Business Challenges

We designed a comprehensive API testing framework that supports both manual and automated testing, ensuring robust and efficient testing practices for reliable API performance.

Lack of Existing API Testing Framework

Hanes faced the challenge of having no established framework for testing their APIs, resulting in inefficiencies and potential issues going undetected. The need to build a structured system for both manual and automated API testing became essential to ensure the quality and functionality of their various brand APIs. Without this framework, the deployment process lacked the necessary safeguards for seamless integration.

Integration of Testing with Development Pipelines

The absence of a testing framework hindered the ability to effectively integrate test cases into Hanes' development pipelines. To address this, the goal was to innovate a framework that could seamlessly incorporate nightly builds and environment-specific features, allowing for smooth deployment and reducing potential errors during production. This integration was crucial for enhancing collaboration between development and QA teams.

Developer Involvement and QA Efficiency

Improving the quality assurance process for developers was a key challenge, as was reducing the reliance on external tools. Encouraging active involvement from developers in the testing process was necessary to create a more resilient system. By establishing a framework that promotes internal tools and processes, Hanes sought to reduce risks and improve efficiency throughout the development lifecycle.

Business Solutions

We replaced the legacy testing framework with Pactum.Js, enhancing the speed and accuracy of API automation testing for improved performance.

Transition to Pactum.Js Framework for API Automation

Sprint Synergy addressed the need for enhanced testing efficiency by transitioning from the Robot Framework to the Pactum.Js Framework. This shift resulted in a more robust and efficient API automation process, improving the accuracy and reliability of the test cases. By upgrading the automation framework, we streamlined the testing procedures, allowing for faster execution and more effective bug detection.

Automated Testing and Deployment with Jenkins

To further enhance the testing and deployment process, Sprint Synergy introduced Jenkins Jobs in three key categories: Nightly, Feature, and Smoke. These jobs enabled automated testing and deployment, improving release management and ensuring smoother project delivery. This automation reduced manual intervention, enhanced consistency, and helped manage the project lifecycle more efficiently.

Task Automation and Expanded API Testing with Postman

We utilized Bash and Python scripting to automate repetitive tasks, boosting overall efficiency and reducing manual efforts. Postman was also introduced for both manual and automated API testing, with a specific focus on GraphQL (GQL) testing to ensure API compatibility and performance. This strategic adoption of tools and scripting greatly enhanced the testing framework's resilience and scalability.

Results

The development and deployment of an in-house API testing framework at Hanes was a significant milestone that enhanced synergies between developers and testers. This new approach allowed for end-to-end API testing directly in the developers’ local environments, diminishing the dependency on external platforms such as Jenkins and boosting flexibility in the development process.This innovation led to quicker detection and fixing of issues, thanks to faster feedback cycles. It contributed to greater efficacy in nightly builds and in creating feature-specific environments, ensuring more focused and reliable testing. The key advantage of this framework was its capacity to minimize reliance on external resources, thus creating a more autonomous and efficient development ecosystem.Sprint Synergy’s commitment to continuous refinement has not only streamlined Hanes testing and deployment procedures but has also established a solid groundwork for future technological advancements within the active lifestyle sector and beyond.

What Clients Say
About Us

Scroll to Top