Giri Shankar Ravichandran

The 9th edition of the Global Testing Retreat 2024!

About Speaker

Giri Shankar Ravichandran

Technology Specialist
Cognizant Technology Solutions

Senior Associate at Cognizant with 10 years of extensive experience in performance testing across various products and domains. Proficient in exploring and adapting emerging technologies to enhance the efficiency of daily work activities. Presented and led performance testing sessions at various forums.

Outside of work, actively involved in social initiatives such as lake restoration, tree plantation, and seed balling.

Hands on Lab (60 Mins) - Accelerated Performance Test Design using GitHub Copilot

Introduction:

In this immersive, hands-on workshop, participants will gain an understanding on accelerated performance test design using GitHub Copilot. The workshop will provide practical experience in leveraging GitHub Copilot to create, optimize, and manage performance testing scripts efficiently. Participants will learn how to utilize Copilot for various performance testing tools such as LoadRunner, K6 and more. This dynamic workshop offers a mix of theoretical insights and practical sessions, ensuring a well-rounded understanding of using AI for performance test design.

Understanding GitHub Copilot:

GitHub Copilot is an AI-powered coding assistant developed by GitHub in collaboration with OpenAI. It integrates seamlessly into popular development environments like Visual Studio Code, providing real-time code suggestions, autocompletions, and automated code generation. GitHub Copilot helps developers write code faster, reduces repetitive tasks, and enhances coding efficiency by offering context-aware suggestions and solutions.

Key Features of GitHub Copilot:

  • OpenAI Codex: GitHub Copilot is powered by OpenAI’s Codex model, trained on a vast dataset of public code repositories from GitHub. It understands natural language prompts and converts them into code.
  • Context Awareness: Copilot works within the context of the codebase and IDE, providing inline suggestions and code snippets as the developer types.
  • Real-time Assistance: It generates and optimizes code, provides real-time coding suggestions, debugging support, and automates repetitive coding tasks.

API Script Creation for LoadRunner and K6:

  • GitHub Copilot can be used to create API scripts efficiently by providing predefined prompt templates that detail the required API operations. For example, you can input a prompt template with available API details, and Copilot will generate the corresponding LoadRunner or K6 script. The generated script can then be reviewed, modified, and validated in the respective performance testing tool. This approach significantly reduces the time required for script creation and ensures consistency and accuracy in the generated scripts.

 

Test Design using GitHub Copilot:

  • API Script Creation for LoadRunner and K6:
    • Define Experiments: Input the prompt template with details for the APIs.
    • Create Script Templates: Generate entire scripts from predefined prompt templates.
    • Execute and Validate Scripts: Run the scripts in the respective performance testing tools and validate the results.
  • Script Review and Enhancement:
    • Automated Code Review: Utilize Copilot to review and enhance existing performance testing scripts.
    • Custom Functions and Error Handling: Generate custom functions and error handling logic using Copilot.

Workshop Table of Content with suggested duration:

Table of Content:

  1. Introduction to Topic- Accelerated Performance Test Design (Duration: 5 mins)
    • Overview of performance testing challenges and the role of AI.
  2. Overview of GitHub Copilot (Duration: 5 mins)
    • Introduction to GitHub Copilot, its features, and benefits.
  3. Use case explanation (Duration: 5 mins)
    • Introduction to basics of loadrunner and k6 API scripting
  4. Creating Performance Scripts with GitHub Copilot (Duration: 20 mins)
    • Hands-on lab for creating API Scripts using Copilot
  5. Advanced Scripting Techniques with GitHub Copilot (Duration: 10 mins)
    • Custom functions, error handling, and script optimization.
  6. Discussion and Q&A (Duration: 15 mins)

Lab Requirements:

  • A GitHub account and access to Visual Studio Code
  • Copilot extension in VS Code
  • Performance testing tools like LoadRunner, K6 installed.

 

Pre-requisites:

  • Participants should have basic knowledge and a general understanding of performance testing.
  • Prior hands-on experience with performance testing tools would be beneficial.
  • Familiarity with GitHub and Visual Studio Code.
  • Understanding of scripting and coding concepts.
Proud to Be Speaking at #ATAGTR2024

Scroll to Top