Silent install of Testexecute with credentials
So i have my VM hosting my agents and testexecute which is running my automated UI tests. Right now i use a script to install Testexecute using -SilentInstall -SLM. However i am still required to log to the VM after the install to manually enter the credentials of my account in order to use TE in my tests. This is rather inconvenient since the way my VM are structure, i could rollback to a checkpoint previous to the TE installation to perform certain maintenance on the VM and then reinstall TE. So i was hoping if there was a way to silently install TE and provide the credentials to use? Thank you.Solved61Views0likes2CommentsButton is recognized but is not clickable.
Hello everyone. I need your help to figure out why the button on my mobile app (Android) is not clicked even though TestComplete recognizes it. The code is very simple: if completeButton.Exists: Log.Message("The button exists") completeButton.Click() It returns "The button exists". However, the button is not clicked. I suspect that the issue is because the button is partly covered with home icon as the image shows. Please tell me your thought and advice to fix this error. Cheers.94Views0likes7CommentsCannot Open Sys Object Tree
Hello! I'm using testComplete for my application testing. In the object browser, Mobile and Sys are listed. I can open the Mobile object tree but cannot open the Sys object tree. More detail: I’m not able to get sys object tree, when I go with Object Spy > Highlight object in the object tree I receive message "cannot highlight this object in the object tree" but this object exists on the screen and when I use function 'Highlight object on the screen' it is highlighted. It happens to each object I tried (WPFobject such as buttons, cells). What I did: I updated the latest version of TestComplete(v 15.73.16), then sys object tree appeared. However, as I opened my file and start working, the object tree was not opened. Please give me any advice to solve this problem.126Views0likes2CommentsProjectSuite.Variables.Path is undefined in OnStartTestHandler
I would like the pjs path in the OnStartTestHandler event handler to prefix to a TestedApps application. When I run my test ProjectSuite.Variables.Path is undefined. Is there another way to get the pjs path in the OnStartTestHandler event handler? This is my javascript code function UpdateFilePath(testedApp, path) { let app; // Obtains the tested application's item app = TestedApps.Items(testedApp); Log.Message(`Start: ${app.Path} --- ${app.FileName}`); app.Path = ProjectSuite.Variables.Path + path; Log.Message(`End: ${app.Path} --- ${app.FileName}`); return app; }Solved38Views0likes1CommentHow To: Read data from the Windows Registry
Hello all, I have recently learned how to retrieve data from the Windows registry in JavaScript test units. I am using this to return the OS information and application path information. This is very useful when added to the EventControl_OnStartTest event code. This will allow you to return OS information and other needed data at each test run. Some test management systems may provide this information for you or it may be logged in the in data produced in a pipeline run. This will embed the information directly into your test log. SmartBear KB Links: Storages Object Storages Object Methods Storages.Registry Method Section Object Get SubSection Method This bit of code will return the Product Name and Current Build from the registry. This location may vary between OS's so you will want to check this with RegEdit. let Section = Storages.Registry("SOFTWARE\\Microsoft\\Windows NT", HKEY_LOCAL_MACHINE); let regKeyString = Section.GetSubSection("CurrentVersion").Name; let productIdString = Storages.Registry(regKeyString, HKEY_LOCAL_MACHINE, 1, true).GetOption("ProductName", ""); let currentBuildString = Storages.Registry(regKeyString, HKEY_LOCAL_MACHINE, 1, true).GetOption("CurrentBuild", ""); Log.Message("Windows Version: " + productIdString + " Build: " + currentBuildString ) I have also found the need to find and set an application path and work folder in the project TestedApp for running through a pipeline because the pipeline deploys the application to a non-standard path. let Section = Storages.Registry("SOFTWARE\\WOW6432Node\\<_yourSectionName>\\", HKEY_LOCAL_MACHINE); let regKey = Section.GetSubSection(<_yourSubSectionName>).Name; let Path = Storages.Registry(regKey, HKEY_LOCAL_MACHINE, 0, true).GetOption("", ""); let WorkFolder = Storages.Registry(regKey, HKEY_LOCAL_MACHINE, 0, true).GetOption("Path", ""); let appIndex = TestedApps.Find(<_yourAppName>); if (appIndex >= 0){ if(TestedApps.Items(<_yourAppName>).Path != Path){ TestedApps.Items(<_yourAppName>).Path = Path } if(TestedApps.Items(<_yourAppName>).WorkFolder != WorkFolder){ TestedApps.Items(<_yourAppName>).Params.ActiveParams.WorkFolder = WorkFolder; } } else{ Log.Error("TestedApp " + <_yourAppName> + " does not Exist.") Runner.Stop(true); } I hope you find these links and code examples as useful as I have! Have a great day!71Views0likes0CommentsName Mapping not working on remote browser
The name mapping and test cases work fine on local browsers, but would complain about page or object not found when running headless remote browsers and in parallel testing. I have the following setup for browser name mapping: For headless setup I have: server = "localhost" capabilities = { "browserName": "chrome", "headless" : "true", "screenResolution": "1920x1080", "platform" : "Headless", "record_video": "true" } Browsers.RemoteItem[server, capabilities].Run(url) Is this the correct way to work with name mapping on headless browser?1KViews0likes15CommentsTestexecute enters ` or ~ in textbox
When running tests sometimes TC or TE enters chars into a textbox, mostly this char: ` I've seen it enter ~ aswell Example : I can not find where this char comes from, it happens only sometimes and at different moments/tests Anyone have any ideas where this could come from? In this test because it entered a invalid number I get an error screen (from my software) and the tests goes to timeout which stops the entire rest of the project from being run.Solved1.2KViews0likes16CommentsAzure Pipelines - Runs on TestComplete instead of TestExecute
Hi all, So it seems like my UI tests are running with TestComplete instead of TestExecute and im trying to figure out why. In my pipeline i do request to use/prefer TestExecute: But for some reason it will run them with TestComplete and therefore consume a license which are supposed to be dedicated to my testers. So 5 TC licenses and 7 TE licenses and 6 agents running UI tests at night. Since they seem to run TC many pipeline are failing since they cannot acquire a license. I guess my next solution would be to install only TE on the agent's machines but i like to have TC there for debugging purposes. It was working just fine a few weeks ago... What could be causing this issue?Solved37Views0likes2Comments