Contributions
WaitForm() method?
I need to wait for a Form object below a java process. The caption of the form is dynamic that's why I cannot use NameMapping. In Python the code at the bottom returns "found" when the object is open, but how can I implement the same using a wait method? WaitForm() is not available. Sometimes it takes several minutes for the form until it's shown. def test(): process = Sys.Process("java") caption = "ECH *" formObject = process.Form(f"{caption}") if formOjbect.Exists: Log.Message("found") else: Log.Message("doesn't exist")25Views0likes3CommentsLicense issue
My colleague and me are facing issues with the license server. On Friday everything was ok. Is this a known problem? "An unexpected error occurred. The server failed to provide you with the TestComplete license. Failed to connect to http://44.174.8.103:40892. A connection with the server could not be established. Probably, you do not have the Internet connection, the parameters of the secure Internet connection are incorrectly configured, or the SmartBear license server is not available."39Views0likes1CommentRe: try-except around FindElement fails (Python)
I didn't ask for analysis of my code ;-), but anyway: the code is working as expected, when objects are available there's no issue. And even without parenthesis the log looks the same: When I doubleclick on the last line of the log it points to this line: There's no issue with the Create button, it's found without problems. So again my question: How can I handle this use-case (not knowing if objects are available or not while executing the code) when try-except does not catch the exception as expected?433Views0likes0Commentstry-except around FindElement fails (Python)
Web test I have a form which provides different input fields based on the selected option. Not every option is available every time, but the rest of the code is more or less the same, that's why I don't want to have the same function ten times with only very small differences. So I tried: All three try-except are executed, everytime it runs into the except-part, but only for the first one with the partname TestComplete stops because of an error? I don't understand this behaviour. I would expect to only have the log messages and executing the rest of the code. How I can avoid the interruption of the test? Why is the last log message logged, but the code after that is not executed? I would appreciate if someone could bring a bit of light into this.534Views0likes4CommentsRe: Runtime error while assigning project variable
I found the solution. In my form I have to set the properties for the text field for the password to "eemPassword". That's well hidden in the documentation... But using this property I can assign the content of the TcxTextEdit to a Project.Variable with type "Password". Entering Passwords | TestComplete Documentation (smartbear.com)305Views0likes0CommentsRuntime error while assigning project variable
I have this code inside my script, fetching the values for "user" and "pwd" from a form: ------------------------------------------------ if mr == mrOk: user = idField.Text pwd = pwdField.Text if not Project.Variables.VariableExists("vpmUser"): Project.Variables.AddVariable("vpmUser", "String") if not Project.Variables.VariableExists("vpmPassword"): Project.Variables.AddVariable("vpmPassword", "Password") Project.Variables.vpmUser = user Project.Variables.vmpPassword = pwd ------------------------------------------------------------- The first assignment for user is working, but for assigning "pwd" in the last line I get a "Python runtime error. AttributeError: The object does not support this property or method. [...]". Why does it work for the user, but not for the password? When I check the project variables inside my project the value for vpmUser is set correctly, the value of vpmPassword is empty.348Views0likes2CommentsGlobal variables for whole execution plan
Hi, I have an execution plan with various folders and items. In the first script I read a value from a file. How can I make this value available for other scripts in the execution plan without passing it from one script to the other?Solved383Views0likes1CommentTests of TC 14 not usable with TC 15?
Hello, we switched to version 15 and suddenly all tests are failing. I made a simple check with the object spy and realized that e. g.my button cannot be selected anymore with version 15, only the whole window. And it's now detected as JavaFXObject as before. I'm totally lost how to deal with this. Any recommendations?300Views0likes1Comment