Problem with generated data table and keyword test
Dear Community,
I have a problem with a created table type project variable.
Here is my script, I checked data inside the generated table and everything is OK for the table.
function CreateTestExecutionDataTable(){
// Create a table variable if it doesn't exist
if(!Project.Variables.VariableExists("TestExecDataTable"))
Project.Variables.AddVariable("TestExecDataTable", "Table");
// Get a reference to the variable
var t = Project.Variables.VariableByName("TestExecDataTable");
// Add columns to the table
t.AddColumn("Test Execution");
t.AddColumn("Environment");
t.AddColumn("Build Type");
t.AddColumn("Team");
// Create rows TestExecutionData.testExecutionList.length-2
t.RowCount = testExecutionList.length-2;
Log.Message("Length of the execution table "+t.RowCount)for(let i = 0; i < t.RowCount; i++){
t.$set("Item","Test Execution", i, testExecutionList[i+2]);
t.$set("Item","Environment", i, environmentList[i+2] );
t.$set("Item","Build Type",i, buildTypeList[i+2] );
t.$set("Item","Team", i, teamList[i+2]);
}
}
Then I want to integrate a Data driven loop that will perform actions for each item in the table var.
The problem occurs when I want to choose some values and perform actions, because I don't see anything.
I don't have any idea about how to use this generated table in my keyword test.
Does anyone have an idea?
Thank you for your help.