duyluong

About

Username
duyluong
Joined
Visits
21
Last Active
Roles
Member

Activity

  • Ramesh

    Hi duyluong,

    "Currently, a instance of TestData only loads one sheet that was specified in your Test Data.

    To deal with your case, we can do this:
    ExcelData myData = (ExcelData) ObjectRepository.findTestData("your_test_data_id")

    def dataOfSheetA = myData .changeSheet("sheet_A").getAllData()

    def dataOfSheetB = myData .changeSheet("sheet_B").getAllData()
    To list all sheet names of a test data, please try:
    myData.getSheetNames() (String[])
    Please remember that ExcelData is an implementation of TestData and only works for Excel file.

    Hopefully, my sharing will help you."

    What "your_test_data_id" and ObjectRepository refer here...?

    September 18

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!