completeinternOccasional ContributorJoined 10 years ago11 Posts1 LikeLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: How to avoid having TE running as admin on slave machines? Hello, this is still an issue for me. UAC is enabled on slave machines, yet TE still manages to be launched as admin when ran from Master without any UAC prompt. Slave instance of TestExecute freezes on 'Waiting for TestExecute...' Hi, We're running tests on 4 VMs from a master machine using TestComplete's distributed testing features. It's been running fine for months, until one of the VMs refused to proceed with the tests. The master is able to verify the machine (Win10 x64) and transfer the project files correctly. However the slave instance of TC/TE (tried both) hangs on the 'Waiting for TestExecute' step indefinitely. The process has to be killed in task manager as hitting the Stop button has no effect. Some facts: -Running the same project locally on this VM works fine (with TC & TE) -The logs show no test execution at all. I tried having only one script in the test item with Log.Message("whatever") and even that doesn't go through. -All the VMs are similarly configured (Win7-32, 81-64, 10-32 & 10-64) -Tried getting rid of the latest windows update package, no luck. -While hung, the TC/TE process shows around 10% CPU usage -TE version: 10.40.2018.11 -TC version: 10.40.2015.7 There's really no feedback from the app at all...Is there a way to troubleshoot the issue with logs/reports somewhere? Any help would be greatly appreciated, thanks! Re: How to avoid having TE running as admin on slave machines? Hi m_essaid, I launch it either via script or by just clicking on the desktop icon, each time it is not launched as admin on the master machine, which is normal. However the slave instances of TE are launched as admin and I really don't understand why :/ I don't seem to have much control over it, except making sure that TestExecute.exe within C:\Program File\Smartbear\TestExecute\bin\ does not have 'Start as administrator' checked edit: to be more clear, this step is actually not working: http://support.smartbear.com/viewarticle/68479/#ID0EYCAC In spite of doing this, TE is still running as admin on slave machines. How to avoid having TE running as admin on slave machines? Hi, I've got a problem with distributed testing. On the master machine, TE is not running as admin. On slave machines, I have set TE not to run as admin ( TestExecute.exe properties > uncheck Run as admin) Still, when I run my project from master, the TE instance on slave machines is running as admin which is causing issues. If I start TE on a slave machine manually though, it does not run as admin. Am I missing something? Thanks Re: [Distributed Testing] Some files get corrupted during transfer to slave Alright I have figured a few things out. On my last problem (TC is able to transfer project from mapped drive fine while TE isn't): The issue was that while I was opening the project from that mapped drive M: on TC, I launched TE via script from C:. So then the project tried to copy files from M: but it couldn't find any. Opening the project on TE from M: solved the issue. Another thing to keep in mind, is that if the mapped drive is created without elevated privileges, then running the project from task scheduler while having 'Run with highest privileges' checked will not work as the mapped drive can not be seen (see this thread (SuperUser) for more info) So basically I did all of that to try and have the shortest path possible. Should I add some more files to these long paths and exceed 260 chars, I may run into the same problem again. Now in Windows it is possible under certain circumstances to bypass the 260 characters limit (see here (MSDN)) However I tried playing around with those prefixes ( \\?\C:\longpath & \\?\UNC\host\C$\longpath) but that did not work in TC. Would there be any way to transfer a project from a long path to a long path? I could use an external script but I would rather have it done through TC. Re: [Distributed Testing] Some files get corrupted during transfer to slave Yes they are. Re: [Distributed Testing] Some files get corrupted during transfer to slave Hi mtsmith, Thank you but I have already tried to apply the hotfix, but in vain. I managed to get TestComplete to work by mapping the project source path on Master to a virtual drive so the path beame a lot shorter. (net use M: \\%COMPUTERNAME%\C$\pathtoproject /persistent:yes, I could've used subst but making it permanent is a bit tricky) So both manual and automatic project transfer work fine on TC. However TestExecute is still showing the same issue, the project does not get copied correctly onto slave machines. Why would TestComplete and TestExecute behave differently? [Distributed Testing] Some files get corrupted during transfer to slave Hi, We're trying to implement distributed testing on 4 VMs (win 7x32, win8.1x64, win10x86, win10x64) and it's working fine for the most part, although we're running into a serious issue: some files seem to get corrupted while being transfered to slave machines. It seems that if the path becomes long (around 200 characters, but never more than 260) files are turned into folders. So for instance C:\folder1\...\folder9\file.xml on master will become C:\folder1\...\folder9\file.xml\ on slave. Needless to say, the resulting folder is empty. It may also happen that TestComplete throws this kind of error: Cannot create file C:\path\somefile.xml Perhaps the project files are being used by some application (for instance, by TestComplete). Close this application and try again. This seems to only happen on the Windows 8.1 x64 machine. While checking the host after this error message, the .xml was in fact a folder. That same file was also corrupted on the other hosts, but TC didn't throw that error and tests were able to start normally. Our test process is as follows: -Look for an available host -Restore a clean snapshot (so there is not TC/TE instance running, no project files, only the required softwares are installed) -Transfer the project files -Run the tests If we try to click on "Copy Project to Slave" from the hosts manager, we get only one folder on the slave host, named 'Ɇ' (which is empty) Version of TC (master): 10.40.2015.7 Version of TE (master/slaves): 10.40.2018.11 Any help would be greatly appreciated Thanks Re: DBTable variable from a DBTable Thank you but I ended up creating a script to create a table from the path of a CSV file passed as an argument dynamically I used the DDT.CSVDriver methods and it works great :) Couldn't find a way to do that through the UI though. Re: DBTable variable from a DBTable I'm using JScript (but mainly I'm using the UI) But you're right when I export the steps to script I get the following : Project.Variables.Var1 = Project.Variables.Master_cfg.Value("Navigation"); With Var1 a DBTable, and the value stored under Navigation a CSV file I get a type mismatch :(