Ask a Question

Python Script: Multiple functions

aafreen_jamadar
Occasional Contributor

Python Script: Multiple functions

How do I run multiple functions under the same script in test complete while using Python as the scripting language?

3 REPLIES 3
rraghvani
Trusted Contributor

Like so,

 

 

def one():
    Log.Message("One");

def two():
    Log.Message("Two");

def main():
    one();
    two();

 

If you run main(), it will call one() and two()

 

aafreen_jamadar
Occasional Contributor

Thankyou, and what if I were to run multiple python scripts under the same project?

 

rraghvani
Trusted Contributor

See Execution Plan Editor. From here, you can call one() and two() within the execution plan.

rraghvani_0-1675676852293.png

 

cancel
Showing results for 
Search instead for 
Did you mean: