Contributions
Re: Running TestExecute from Powershell - TestExecute.exe is not a valid project.
I see the same issue from powershell and command prompt. If I manually launch TestExecute.exe from the Bin directory, it works just fine. If I do TestExecute.exe or .\TestExecute.exe, I get the errors like the original poster said. But, if I change it to lowercase: testexecute.exe, it works no issue. I recently ran Windows updates on this machine (Windows 8.1), and am using TestExecute 14.10.3.3KViews1like0CommentsHow to use WaitChild or WaitAliasChild when object name contains "Alias" already?
I am using jscript for TestComplete scripts and am struggling to figure out how to write a custom wait condition that will take an object as input and wait a specific number of seconds. I have objects set up like this: var button = Aliases.Product.Tab1.button And in my scripts I use it like button.click(); I want a new wait for exists function so I can write custom logging. I have tried function WaitForConfigObjectExist(objectName, maxWaitTime) { var stopWatch = HISUtils.StopWatch; stopWatch.Start(); while(!Sys.WaitChild(objectName, 500).Exists) { Delay(500); var currentTime = stopWatch.Split(); if(currentTime > maxWaitTime) { Log.Warning(objectName + " not found after " + maxWaitTime + " seconds."); return false; } } But I think this fails because System does not have a child called "Aliases.Product.Tab1.button". When I replace the while line with while(!Aliases.WaitAliasChild(objectName, 500).Exists) it complains that Aliases does not have a child with the name:Aliases.Product.Tab1.button Short of changing the button to be "Product.Tab1.button" and using WaitAliasChild on that, is there any other option to check for existence of a generic object? Thanks for any help!Solved1.6KViews0likes1CommentRe: Integration of web based and desktop automation scripts
What I have done personally for this is to create Keyword Tests where you layer your scripts for desktop and web. You might need a few scripts each for Desktop and Web apps to do what you need. For example: Keyword Test1: Desktop - script written in javascript; when this script ends, the website is open already Web - script written in Selenium; do the things I need to do on the website. Desktop - a new script that does more things on the desktop app, etc.1.2KViews0likes0CommentsWhile loop does not terminate when condition is met, continues
Hi, I am running a keyword test with a while loop. I made a minimal instance of a while loop that should terminate when project variable testResult = Fail. Initially, the variable testResult = Pass. The test runs once, which is good, but I would expect it to not show the messages, "Don'trun this if test has failed.", "Or this.", since those occur after the condition was met. I would think it would stop after testResult was set to "Fail". Why are those Log Messages appearing in the log from the test run? Thanks!Solved1.8KViews0likes2CommentsWhile loop does not terminate when condition is met, continues
Hi, I am running a keyword test with a while loop. I made a minimal instance of a while loop that should terminate when project variable testResult = Fail. Initially, the variable testResult = Pass. The test runs once, which is good, but I would expect it to not show the messages, "Don'trun this if test has failed.", "Or this.", since those occur after the condition was met. I would think it would stop after testResult was set to "Fail". Why are those Log Messages appearing in the log from the test run? Thanks!724Views0likes0Comments- 1.6KViews0likes0Comments
- 1.1KViews0likes1Comment