marin
14 years agoFrequent Contributor
How to pass a reference to a stored table
Hello all,
my tests include a scenario where multiple outcomes of certain program logic branches need to be checked against corresponding table stored in Tables store.
I was wondering if it is possible to pass table name to a function and then check against that particular table, e.g. sth. like following:
Many thanks,
Marin
my tests include a scenario where multiple outcomes of certain program logic branches need to be checked against corresponding table stored in Tables store.
I was wondering if it is possible to pass table name to a function and then check against that particular table, e.g. sth. like following:
function foo()
{
doSomethingToModifyMyTable1;
checkAgainstExistingTable(Tables.myTable1);
}
function foo2()
{
doSomethingToModifyMyTable2;
checkAgainstExistingTable(Tables.myTable2);
}
function checkAgainstExistingTable(myTableRef)
{
doSomethingElseToModifyTableReferencedBy_myTableRef;
myTableRef.Check();
}
Many thanks,
Marin