Forum Discussion
rraghvani
2 years agoChampion Level 3
Look at how you have defined your function for MTE_Textbox_One_level,
def MTE_Textbox_One_level():(Property_Name,Property_Value,Data,ModuleName_Datasheet,TestcaseDesr,Testcaseno,Process_Name,Testlink_Id)
it should be defined like so,
def MTE_Textbox_One_level(Property_Name, Property_Value, Data, ModuleName_Datasheet, TestcaseDesr, Testcaseno, Process_Name, Testlink_Id):
The pseudocode example will look something like this, in Unit1.py
import Unit2
def RunOrderSheet():
# ToDo
DataSheet("SomeRunOrder", "SomeModuleName", "SomeDataSheet", ...)
def DataSheet(TC_NO_Runorder, ModuleName_runorder, Datasheet_Flag, ...):
# ToDo
Unit2.MTE_Textbox_One_level("SomeName", "SomeValue", "SomeData", ...)
and Unit2.py
def MTE_Textbox_One_level(Property_Name, Property_Value, Data, ...):
# ToDo
Learn and understand how functions are defined and how parameters are passed, in Python.
Related Content
Recent Discussions
- 9 hours ago
- 7 days ago
- 10 days ago