Python Script: Multiple functions
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023
12:53 AM
02-06-2023
12:53 AM
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023
01:32 AM
02-06-2023
01:32 AM
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()
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023
01:35 AM
02-06-2023
01:35 AM
Thankyou, and what if I were to run multiple python scripts under the same project?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023
01:38 AM
02-06-2023
01:38 AM
