ContributionsMost RecentMost LikesSolutionsRe: Ghost Login Elements OK so after a lot of reading I found a thread that suggested to run TestComplete in SINGLE monitor mode. And BINGO !! All my data elements are once again identifiable; apart from the login Username and Password, which may have been the result of IT department security upgrades; which is strange because the page elements were originally mapped while using 2 monitors but with an earlier release of TestComplete. Anyhow, thought this may be beneficial if others are racking the brains wondering why their mapping no longer works. Cheers Mark Ghost Login Elements Hi, I'm currently running TC Version: 15.61.48.7 x64 and running automation BDD javascripts on a web app using Chrome Version 122.0.6261.70. Recent (?) changes to the single sign on Chrome login popup make it difficult/impossible for Name Mapping to recognise the popup and the elements within. The closest I can get is for Name Mapping to find the outlined red page element below. 1) What process should I employ in Name Mapping to handle this new "security" function for SSO ? 2) I'm trying to run an executable file by creating a script using AutoIT that does a send(username), send(tab), send(password) and send(enter). Compiling the script to make a Login.exe file. But I'm struggling employing this method within the javascript code. Anyone whom has attempted either (1) or (2) with success, I'd love to hear from. Thanks Mark. DevOps Powershell task to run tscon My Azure DevOps automation pipeline includes an inline Powershell task to run commands that will perform tscon.exe $sessionname /dest:console. My problem is that the Powershell command needs to be run in Administrator mode, which I do not know how to do. Is there anyone whom might have experienced this same problem and resolved it? Mark. Re: Test automation on Virtual Machines Hi Everyone, Alex, you've stolen my thunder 🙂 I was just about to report our success with tscon. We ran the command manually on the RDP machine which 'shut' it down while the Agent was 'listening' for work. Our next step will be to create the batch file to run the tscon command and include it in the nightly pipeline. So, to run this command (as Alex says, run as an administrator ) within the RDP window, from the Command Line. >query user (this will return the sessionname eg rdp-tcp#xx) >tscon.exe rdp-tcp#xx /dest:console respond "yes" to to close your session ...all done Re: Test automation on Virtual Machines Thanks for your reply Marsha, We've tried several options, and can successfully run our Devops pipeline on the remote VM providing a RDP session initiated from a machine that has its Power and Screen saver options turned off. We will try the method using tscon documented in Disconnecting From Remote Desktop While Running Automated Tests. If we have success running the tscon command manually, we'll then try inserting it into the pipeline. Thanks Mark Test automation on Virtual Machines Hi, I'm looking for any alternative methods to perform our nightly automation testing. Our current train looks like this: 1. Tests developed on my local PC are pushed to an Azure Repository. 2. In DevOps we have a Pipeline task 'TestExecute test adapter installer' that triggers the test suite to run overnight. 3. Our target TestMachine is a VM with TestExecute deployed and an Agent listening for work from the DevOps pipeline. 4. We RDP to the TestMachine and can watch the tests executing. So far, so good. 5. The problem occurs when the Machine used to RDP to the TestMachine invokes its screen saver or powers down causing the tests to fail. Our current RDP machine had the Power & Sleep settings set to 'Never' but it was still going into sleep mode. (I'm currently trialling a work around that involves an easy fix to a registry value to expose the 'System Unattended Sleep Timeout'; that was set to 15 minutes; in Advanced Power Options https://windowsreport.com/windows-10-goes-to-sleep-after-2-minutes/ ). If the work around fails, and I have to eliminate using RDP, what are my other alternatives(if any) to run automation on the VM. Relocating TestExecute onto a physical machine is not an option. Also, if anyone has had a successful outcome using SessionCreator on remote virtual machines, I would dearly like to hear from them. Thanks Mark SolvedRe: DateTime milliseconds rounding Hi Marsha, I modified the code: dateActioned = aqConvert.DateTimeToFormatStr(Qry3.FieldByName("ActionDateTime").Value, "%d/%m/%Y %H:%M%S"); Log.Message("dateActioned: " + dateActioned ); dateActioned: 26/11/2020 10:5800 As you can see the rounding has occurred during the format ( should be 10:5759 ) so the milliseconds ( 623) has caused the seconds to round up and then the minutes to round up also. If there was a format code for the milliseconds portion of the datetime then I think there could be a viable solution using the substring to truncate them from the string. DateTime milliseconds rounding Hi, I'm hoping there is someone who may have a solution to my problem. I have a SQL database column ActionDateTime (datetime) with the following value: The value displayed on the website is : When I verify the ActionDateTime ( website table vs database table) dateActioned = aqConvert.DateTimeToFormatStr(Qry3.FieldByName("ActionDateTime").Value, "%d/%m/%Y %H:%M"); aqObject.CheckProperty(Table.rows.item(rowIdx).cells.item(3), "innerText", cmpEqual, dateActioned); The seconds/milliseconds 59.623 has rounded up, causing the minutes also to be rounded up. How can I get the hours:minutes without the rounding? Thanks Mark Solved