Contributions
Re: Alternatives to Check method logging error
I do not do the logging, it is Regions.(name).Check(...) that does the error logging if it fails the property check. I would like to just return false and not log an error.11 months agoPlace TestComplete QuestionsTestComplete Questions264Views0likes0CommentsAlternatives to Check method logging error
Hello, I would like to use the regions check property on an if statement, but noticed that if the check property returns false ithalts the test automatically after logging the error. I do not want to modify my playback options to not stop a test on Log Error. Instead, I just want the same functionality that the check does but to return a true or false depending on the check. Not an error log. I have stored an image and a mask on what I want to focus on, but the image to compare that to is gathered at run time. Any suggestions? Code (in python):292Views1like3CommentsRe: Changing the value of a project variable through scripting
Another way of asking my question is if it is possible to change a project variable's contents that does not require me to explicitly write out "Project.Variable.Obj1 = some object" over and over again. Instead can I sendProject.Variable.Obj1 as an argument to a method I made to change it that way? If so, when I tried to do this, the project variable i passed did not get changed in its calling method. Why's that?543Views0likes1CommentRe: Changing the value of a project variable through scripting
I meant thatprojVarObj as a parameter is None. Even though I have already assigned it some value earlier in the execution. The .Find method was just something ill be doing with the project variable. So what I have: Project.Variable.Obj1 = Some object but later on down the road when I don't want to type out Project.Variable.SomeObject in its entirety i want to make a method that generalizes the changing of one of my project variables through the method foo I wrote up there, I could have Proj.Variable.Obj1 through Obj5 and i want to change them this way for simplification purposes. foo(Project.Variable.Obj1, PropNames[1,2,3], PropValues[1,2,3])570Views0likes0CommentsChanging the value of a project variable through scripting
Hello I'd like to change the value of a project variable through a script that has already been set as some value at some time at the beginning of execution. So at the beginning of my python script i do something like this: Project.Variable.Obj1 = Some Object ... But then later on down the execution of my keyword test I want to reassign that project variable object to a new one through a method like so, where "projVarObj" would be the "reference" to the project variable "Obj1": def foo(projVarObj, propNames=[], propValues=[])): ... projVarObj = MainWindow.Find(propNames, propValues, 1000, True) I have tried this but when I debug I see that the projVarObj is None.584Views0likes6CommentsRe: Script Routine Parameters
The documentation does not give an example on what I am looking for. I want to pass a list as an argument that my python method needs. Which of these options is that and how would I input that in? Here's an example on what I mean: def foo(LstParam1=[], LstParam2=[]): #code //// I can see that the only options would be Object Or Variant. Which one is it and how would I enter it in? Thank you499Views0likes0CommentsScript Routine Parameters
Hello, I have written a parameterized script routine in python and I want to use it in a keyword test. But these parameters are an on-screen object's Property names and values. The first parameter i have is'PropNames'and the second one is'PropValues'. Where they must accept the list format in python: ['A', B',....]. Which option would that be in the list below? Thank youSolved613Views0likes4CommentsUpdating object mapping
Greetings 🙂 I wanted to know if there was a feature that automatically detects that I have changed the properties of an object in the object mapping for all the same objects in a keyword test. So something like "Oh hey, I noticed you changed the settings of that one button, do you want me to apply it to all of the same recurring usages of that button in this keyword test/project/suite"? Recently my application has seen a large amount of changes. When using test complete to test/run on this new version im working on, it doesn't recognize the object i have once recorded in the previous version of our application. I've seen the documentation of an update wizard, but it seems as though i have to click on objects for it to detect any changes. I was hoping if there was a more expansive way to update a lot of objects all in one go. Thank you for your time. ianlop411Views0likes3CommentsRe: Updating object mapping
Good morning, I understand that, but is there no way test complete can automatically detect these changes and apply it to all of the usages of an object throughout a test? Or a suite? The usermust manually updated the object in the wizard at an individual level?354Views0likes0Comments