bgran05Occasional ContributorJoined 9 years ago18 Posts6 LikesLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: 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. How 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! SolvedRe: Code Completion for class methods +1 Would really like this feature for Javascript. Re: 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. Re: While loop does not terminate when condition is met, continues I see. Thank you. Marked as solution. :) While 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't run 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! SolvedWhile 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't run 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! Re: Group actions in keyword test for readability? Thank you so much! It works great! Group actions in keyword test for readability? Hi, I have a keyword test that is about 50 actions long. Is there a way I can group related actions together on the keyword test workspace, so I can collapse a set of actions under a header for readability? Thank you! SolvedRe: Visible row numbers for keyword tests? I submitted the suggestion. Thank you!