Forum Discussion
What are you expecting this line of code to do?
Execute(TC_Description_Datasheet)&""""&Property_Name&""""&","&""""&Property_Value&""""&","&""""&Data&""""&","&""""&ModuleName_Datasheet&""""&","&""""&TestcaseDesr&""""&","&""""&Testcaseno&""""&","&""""&Process_Name&""""&","&""""&Testlink_Id&""""
Are you passing these parameters to another function? Is it suppose to log information? Or execute something? Or evaluating an expression?
Here's an example of calling a function,
def my_function(fname):
print(fname + " Refsnes")
my_function("Emil")
my_function("Tobias")
my_function("Linus")
- Arulmurugan2 years agoOccasional Contributor
Thanks for your response.
In VBScript, we use that Execute keyword to send these parameters to another script units.
In our framework, events / actions (like Click, keys, Rclick, Dblclick and so on) related routines are maintained in Functions Script Unit and validations / checkpoints related routines are maintained in Checkpoints Script Unit.
while running the Testcomplete, these function's and checkpoint's routines are required these parameters and In VBScript, we send these parameters to Functions and Checkpoints Script Units as mentioned below where the Execute line starts,
and all the script units (Driverscript, Functions and Checkpoints) are referred to each other using Add Unit References option under Script ((it is a Group of Script Unit and under this only all Script Units are available).
Execute TC_Des_Datasheet&""""&PName&""""&","&""""&PValue&""""&","&""""&Data&""""&","&""""&TestcaseDesr&""""&","&""""&Testcaseno&""""&","&""""&ProcessNam&""""&","&""""
In Python, we are trying to do it in the same way of how we send the parameters to another script units in VBScript.
That is, we use that Execute keyword as we use in VBScript, but we don't know how to achieve it in Python we just give a try with this Execute keyword, whether the same keyword works.
We are not calling a functions, we have to send the parameters to another script units.
is there any specific keyword to achieve it in Python.
is there a way to send the parameters to another script units, how we pass the parameters in VBScript.
Please inform us, if you are not clear with the above-mentioned clarification.
Thanks.
Related Content
Recent Discussions
- 9 hours ago
- 7 days ago
- 10 days ago