rraghvaniChampion Level 3Joined 4 years ago4372 Posts1213 LikesLikes received529 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: SessionCreator returns exitcode: 7 Failed to create user session Is your schedule configured to "Run whether user is logged on or not"? And is the password correct for the user account? Re: Any workaround for TC15.77 Python issue Refer to the Solution by BD_Geoactive , everything is explained in that post. Unfortunately, there's no "quick" solution. Re: Unable to install upgrade of TestComplete as previous installation not finished. I had the same annoying issue too! As an example, from the command prompt, locate your installation file and type in either C:\>TestComplete1579SLM.exe --clean or C:\>TestComplete1579SLM.exe -clean I can't remember if it's one or two dashes before clean. Re: If statement Here's an example - go to the following website https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_button_test and paste in the following code on the left hand side, and click 'Run >' <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Example</title> <style> .uob-fields, .non-uob-fields { display: none; } </style> </head> <body> <h2>User Account: rraghvani</h2> <label for="uobSelect">Is UOB: </label> <select id="uobSelect" onchange="toggleFields()"> <option value="no" selected>No</option> <option value="yes">Yes</option> </select> <!-- UOB Fields (hidden by default) --> <div class="uob-fields" id="uobFields"> <h3>UOB Sample Data</h3> <label for="uobAccountNumber">UOB Account Number:</label> <input type="text" id="uobAccountNumber" value="1234567890" readonly><br><br> <label for="uobBalance">UOB Account Balance:</label> <input type="text" id="uobBalance" value="$10,000" readonly><br><br> <label for="uobBranch">UOB Branch:</label> <input type="text" id="uobBranch" value="UOB Singapore Main Branch" readonly><br><br> </div> <!-- Non-UOB Fields (hidden by default) --> <div class="non-uob-fields" id="nonUobFields"> <h3>Non-UOB Sample Data</h3> <label for="nonUobAccountNumber">Account Number:</label> <input type="text" id="nonUobAccountNumber" value="9876543210" readonly><br><br> <label for="nonUobBalance">Account Balance:</label> <input type="text" id="nonUobBalance" value="£5,000" readonly><br><br> <label for="nonUobBranch">Bank Branch:</label> <input type="text" id="nonUobBranch" value="NatWest" readonly><br><br> </div> <script> // Function to toggle visibility based on dropdown selection function toggleFields() { var uobSelect = document.getElementById("uobSelect").value; var uobFields = document.getElementById("uobFields"); var nonUobFields = document.getElementById("nonUobFields"); if (uobSelect === "yes") { uobFields.style.display = "block"; nonUobFields.style.display = "none"; } else { uobFields.style.display = "none"; nonUobFields.style.display = "block"; } } // Initial toggle based on default selection toggleFields(); </script> </body> </html> You'll get the sample website appearing on the right hand side, Keyword Test - the conditional if-statement reads like so: If Aliases.selectIsUob.wText == "No" Then Log Aliases.textboxBankBranch.Text Else Log Aliases.textboxUobBranch.Text It will either display "NatWest" if UOB equals "No", or it will display "UOB Singapore Main Branch" if UOB is not equal to "No". Remove "selected" from line 17 and insert it on line 18, and click 'Run >'. Run the keyword test again. This should give you a clear starting point. Re: SessionCreator returns exitcode: 7 Failed to create user session Use Task Manager, and check the number of Users on both machines? Do both machines have the same OS versions? Check your security options for your Task Schedular, on both machines too. Re: SessionCreator returns exitcode: 7 Failed to create user session I have a VM which has TestExecute installed, and a PowerShell script, which has the following command, called by Task Scheduler at a given time. & 'C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin\SessionCreator.exe' RunTest /UserName:TestUser1 /password:'testuser1' /UseActiveSession /ScreenResolution:"1920*1080" /ProjectPath:"C:\Sandbox\TestComplete\ALS\ALS.pjs" /ExportLog:"C:\Sandbox\Log\TC_Automation_$tc_timestamp\index.html" /ExportSummary:"$summary_report" | Out-Null The VM has been set up to automatically login user 'TestUser1', and the VM is always unlocked (this is my active session). When I invoke the script to launch SessionCreator, it will spool up another session to run the automation scripts. SessionCreator The utility opens interactive user sessions required for the TestComplete interaction with your tested application GUI. If an interactive user session is not opened, the test engine will not be able to access the GUI, and your tests will fail. Re: SessionCreator returns exitcode: 7 Failed to create user session Hi MW_Didata as mentioned in Running Tests on Locked Computers, Tests that do not interact with GUI can be run on locked computers. GUI tests or tests that simulate user actions cannot be run on locked computers, since when the computer is working in this mode, the user session is frozen (no windows can be shown) and the testing engine cannot simulate user actions Re: page.PagePicture - Screenshot duplication Reaching out to the community is definitely the best option. In my experience, AI tools like ChatGPT aren't always reliable when it comes to TestComplete specific issues, though they can be useful for general programming questions. If something isn't working as expected, I'd recommend testing it in a new, clean project and using a simple site like w3schools.com to rule out project specific issues. You could also try upgrading TestComplete, but that may sometimes introduces new problems. Other forum members may be able to test this on their own versions of TestComplete and share their findings. If no workaround turns up or they can't reproduce the issue, then opening a Support Ticket would probably be the best next step Re: page.PagePicture - Screenshot duplication Try capturing https://getbootstrap.com/docs/4.0/components/dropdowns/ or https://www.w3schools.com/ . If the issue persists, then it could be an issue with that particular version of TestComplete you are using. Re: page.PagePicture - Screenshot duplication What you have shown is what is explained in the Remarks section in the link that I had provided, relating to "sticky" elements. Try using Options.Web.CSSTransitionForPagePicture property to see if that helps.