MW_DidataSuper ContributorJoined 3 years ago287 Posts116 LikesLikes received42 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: SessionCreator returns exitcode: 7 Failed to create user session The PC has 2 users, 1 is the admin account of my org, and the other is the user account. The user account is also an administator on the machine. When checking Task manager only the 2nd user is shown, that is the user that should start the task. Both machines use the latest Win11 Pro 25H2. In taskschedular the options "Run with highest privileges" and "Run whether use is logged on or not" are both enabled. (Same as the other machine) Re: SessionCreator returns exitcode: 7 Failed to create user session I run the tests on a physical PC. It has Testexecute and Testcomplete Installed. I use pretty much the same command, but instead of the entire ProjectSuite it runs each project one after the other with the /Project flag. but it no longer works. Like I stated above I even went back to a very basic batch script that should just start the testrun. That also did not work. I run other projects on another PC, that one still works. SessionCreator creates the session and testing begins, its only 1 machine that no longer works. Re: SessionCreator returns exitcode: 7 Failed to create user session Hello rraghvani What do you mean? The testrun does use the GUI, Taskscheduler starts a C# program (Or batch) and that starts the testrun with SessionCreator.exe. Sessioncreator should create a session on the locked pc where TestExecute can preform the tests. This worked for atleast the past 2 years, but suddenly I get back Exitcode 7 while I changed nothing. Re: SessionCreator returns exitcode: 7 Failed to create user session The issue only happens when the PC is locked. If I start the task while logged in the testrun does start. SessionCreator returns exitcode: 7 Failed to create user session I currently have an issue on only 1 of my test machines where the testrun never starts and the exitcode is 7 with the message "Failed to create user session" This machine runs 2 projects and has worked for about 2 years, now since January 6 it won't start the testrun anymore. To go back to the basics I even made a new bacthscript to start the run with only the minimal required code. "C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin\SessionCreator.exe" RunTest /Username:"<PCName>\<UserName>" /Password:"<Password>" /ProjectPath:"<PathToPJS>\<ProjectSuite>.pjs" /ScreenResolution:1920*1080 /Timeout:9000 /project:"<Project>" I still cant get the testrun to start. Windows taskscheduler starts the batch script, this does work, the batch script starts but when it comes time to start a new session sessioncreator returns code 7. I've already created a support ticket, But I'm hoping any of you might be able to help me further. To me this seems like a windows setting that got changed somewhere in an update but i'm not sure. The PC is running on the lastest Win11 25H2 update Re: capture variable from the popup in Desktop application You're can save the text into a variable and then start extracting the info If the Customer number is always in the same place then remove the "Client " part of the string. Then if its always the same length remove everyting after the length of the customer number. if the length is not always the same look for the position of the first " " (space) in the remaning string and remove everyting after that including the space itself The customerName might be more tricky since it might or might not contain a space. I would suggest finding the position of the " has been...." and calculate from there what part of the string you need. To manipulate a string you can use the aqString methods: https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqstring/methods.html I had a similar issue where I would need to extract an ordernumber from a msgbox string, Since most of the string didnt change only the number I just went step by step removing the unneeded parts of the string until only the ordernumber was left. Re: OCR checkpoint throw exception option if the problem is that your execution stops on errors please check this page: https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/playback.html and set you project settings to continue on error Re: Integrate GitHub Copilot in TestComplete Tool I was just about to make this request. Instead of just co-pilot I like the way Visual studio does it where you can also use a different model with the BYOM (Bring you own model) configuration. I just linked my companys paid ChatGPT license into Visual studio (We don't have Co-pilot). This enables the apply to code, and attach file as context, etc. features of co-pilot to the OpenAI model. if Smartbear adds it in this way you could use any AI model even your own. Re: TestExecute logs out before tests run Not sure if this will work for VMs but I had an issue where every month I would need to re-login so my tests that night did not run. Smartbear support give me a fix that I'll share with you: Go to the Smartbear license page, In the Top-right of the page click your logged in user (the user that runs the tests) and click settings. Now there should be a screen showing the acceskey: Copy that key. then on the shortcut that starts TC or TE in the target field append this to the end: /AccessKey:{Your copied accesKey} If you then start the application this acceskey is also copied to a smartbear.auth file I forget where this file is located. This fixed the issue for me and now i no longer need to login every month Re: Backticks in textboxes using the Keys command That must be it haha, like I marked in the solution, the fix was to set the keyboard language to English (US) It does mean you can no longer type these chars á, é, í, ó, ú, ý or ä, ë, ï, ö, ü, ÿ. or you'll have to lookup the alt-codes for those.