Forum Discussion

aafreen_jamadar's avatar
aafreen_jamadar
Occasional Contributor
2 years ago

Python Script: Multiple functions

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

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    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's avatar
      aafreen_jamadar
      Occasional Contributor

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