#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
Rest Assured

Payload extraction from excel sheets

How It Works

A Java library such as Apache POI reads data from an Excel file cell by cell, which the automation code then assembles into a JSON (or other) request payload before sending it via Rest Assured.

Example Flow

Workbook wb = WorkbookFactory.create(new FileInputStream("data.xlsx"));
Sheet sheet = wb.getSheet("Users");
String name = sheet.getRow(1).getCell(0).getStringCellValue();
String job = sheet.getRow(1).getCell(1).getStringCellValue();

given().contentType("application/json")
    .body("{ \"name\":\"" + name + "\", \"job\":\"" + job + "\" }")
.when().post("/users")
.then().statusCode(201);

Why This Matters

This is the core mechanism that powers a payload-driven framework, letting one test method run repeatedly with many different data combinations pulled straight from the spreadsheet.

Ready to master real-world software testing?

Learn manual and automation testing hands-on with mentor-led sessions.

Explore Course