Dave1
8 years agoNew Contributor
Writing Python scripts, composed of several methods
Hi All, I have problem with writing Python scripts. I want to write one test , composed of several methods. Splitting the script into methods is intended to increase versatility. For example When I ...
- 8 years ago
Hi,
I'm not python-scripter, but looking at your testmain method
def testmain(): Unit5.Test1() Unit5.Test2(Unit5.Test1)
I guess Unit5.Test1 is going to run two times. Instead of doing above , what happens when you do like below
def testmain(): Unit5.Test2(Unit5.Test1)
Or
def testmain(): panel = Unit5.Test1() Unit5.Test2(panel)