ContributionsMost RecentMost LikesSolutionsRe: How write pythons`s methods Hi Bonibom, Thank you for answer! It solved my problem. How write pythons`s methods Hi All, I have question about writing scripts in Python. I would like write one method and use it in others because I have part of code which I need in all methods. Do you have any idea for it ? How can I do it ? I wanted to do like below, but TestComplete shows error. SolvedProblem with connection in Distributed Testing Hi All, I have a big problem with connection between master computer and remote computer. I have errors all the time, and I do not know what is wrong. My master is on VM, remote is also on VM and I use TestComplete 12 ( trial version, floating license) because I want to test Distributed Testing on VMs. I would like to create Automatic(RDP Session) but I still get message:"Verification failed: Unable to create a user session on the remote computer" during verifying connection. When I click on Base path I can see folders on my remote computer, I can create connection when I use Remote Desktop Connection on Windows. I I set all requirements I still nothing. Below I present my settings: On master: On Master and Remote: In System Properties I check Allow connections from computers running any version of Remote Desktop( less secure) Firewall is disabled In Local Group Policy>ComputerConfiguration>Administrative Templates>All Settings> Always prompt for password upon connection and Prompt for credentials on the client computer are disabled. In Windows Firewall with Advanced Security on Inbound and Outbound Rules I add ports(6090,6091,6092) Does anyone have any idea? I have been sitting for a few days and have no idea.. 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 have 100 tests, I would have to change 100 scripts when updating the app. However, making a script from a method would save time, because I can change one method, not 100 scripts. Is it feasible? Knows someone how to do it? I have whole script: def Test(): TestedApps.XXX.Run() XXX = Aliases.XXX panel = XXX.WizardFrame.RootPane.null_layeredPane.wizardPanel.Panel panel.z.Panel.Panel.Box.Panel.Box.Box.next.ClickButton() panel2.Panel.SystemScreen_DefaultPanel.RadioButton.ClickButton() panel2.Panel2.Box.Panel.Box.Box.next.ClickButton() panel2 = panel.z3.Panel scrollablePanel = panel2.Panel2.SystemScreen_DefaultPanel.FormPanel.ScrollPane.FormPanel_1.ScrollablePanel scrollablePanel.z2.ClickButton() I would like to split him def Test1(): TestedApps.XXX.Run() XXX = Aliases.XXX panel = XXX.WizardFrame.RootPane.null_layeredPane.wizardPanel.Panel panel.z.Panel.Panel.Box.Panel.Box.Box.next.ClickButton() panel2 = panel.z2.Panel return panel2 and def Test2(method): panel2=method panel2.Panel.SystemScreen_DefaultPanel.RadioButton.ClickButton() panel2.Panel2.Box.Panel.Box.Box.next.ClickButton() panel2 = panel.z3.Panel scrollablePanel = panel2.Panel2.SystemScreen_DefaultPanel.FormPanel.ScrollPane.FormPanel_1.ScrollablePanel scrollablePanel.z2.ClickButton() In my main script: def testmain(): Unit5.Test1() Unit5.Test2(Unit5.Test1) This example does not work properly. Only Test1 passes, but Test2 does not start. Someone knows what`s wrong ? Solved