Sorry, my explanation was very short and incomplete. I try it again :)
We use a proprietary test ware management tool to write test cases (SQS TestCenter). These test cases are connected to keyword tests in TestComplete.
To execute the test cases the test ware management tool calls the connected keyword tests. The defined test data is passed as test parameters of the keyword tests.
In special cases we need to pass this data further on to script functions e.g. checking a table row with many columns. For each column exists a test parameter which has to be passed to the script function as a parameter.
The script function itself generates an array out of the passed test parameters and calls a generic script function which iterates over the table and the passed array.
Due the high parameter count, the effort to maintain and write the script functions is very high. Therefore we want to write a generic script function which is called by the Keyword Test which iterates over the test parameter of the Keyword Test - e.g.:
function checkTableRow (KeywordTest) {
var arrIdentifyRow = Array(KeywordTest.Parameters.Length)
{
for (var i = 0; i < KeywordTest.Parameters.Length; i++)
{
arrIdentifyRow(i) = KeywordTest(Paramters)(i);
}
...
}
I have read this is not possible due access restrictions during runtime. Is this correct and is there any other possibility?