Forum Discussion
AlexanderM
14 years agoStaff
Hi,
I was able to pass the DBTable object from a keyword test to a script test. I added the Run Script Routine operation to a keyword test and specified "dbtables.table1" in the Value column (the parameter mode is Code Expression). Here is a script function that receives the object:
function setconnectionstring(obj);
var DBTable;
begin
DBTable := obj;
result := DBTable.ConnectionString;
end;
BTW, if you want just to change the connection string in your keyword test, you can use the Run Code Snippet operation instead of calling a script routine that will perform the same. Please read the "Run Code Snippet Operation" article for more information.
Related Content
- 2 months agoSahall0308
Recent Discussions
- 2 days agoMW_Didata