ContributionsMost RecentMost LikesSolutionsRe: aqObject.SetPropertyValue Not able to set value for Keys or Text Hello! I did not have time to continue working on this. The clicking in a problem for me because the whole grid is a single component. The object spy cannot focus on a single field, I get the whole grid. So until I resolve that, it's going to be a little complex. The programmers won't change the code because I'm only QA, it's not a problem reported by a customer.. The field I was has it's own component, but it's only available once I have clicked in that field (and wait a few ms). I will try to find a way around this and test the suggestions but I won't have time this week. Although, if I don't resize or move the window, my click works. I was able to enter my date in a string variable and that did not pass to keys, I had tried already. Maybe the links will show me something different than what I tried.. Re: aqObject.SetPropertyValue Not able to set value for Keys or Text The other downside of using Keys seems to be that I cannot pass a variable. I wanted to insert today's date in the field but it is going to be a lot more work to make it work with keys - if even possible! As of now, it is failing. Re: aqObject.SetPropertyValue Not able to set value for Keys or Text Thank you. I don't have that property either. I might need to resolve into clicking! Thanks to both of you. Re: aqObject.SetPropertyValue Not able to set value for Keys or Text Yes that is what I tried at first. When recorded, the test does a click in the field, then enters the value. This works, but I wanted to avoid the clicking the field in case it changes to a different position (also timing issues and things like that sometimes don't make the cursor/clicking reliable). When recorded and converted to script, it doesn't use theaqObject.SetPropertyValue. I thought that by setting the property that way, I could avoid the clicking in the specific field. aqObject.SetPropertyValue Not able to set value for Keys or Text Hello, I have a date field which I am trying to input with today's date. The particular field does not have the Text property but it does have the Keys property. I am trying to make sense of how they work but I don't fully understand how it works - or maybe the limitations are in my software and not TC. I have currently insert the proper date format in the variable "FormatedDate". I have Field A that has both Text and Keys properties and Field B (which is the one I need) with only Keys property. I can enter the date in field A using: aqObject.SetPropertyValue(Sys.Process("Maint").VCLObject("MainForm").Window("MDIClient", "", 1).VCLObject("PLUForm").VCLObject("BackPanel").VCLObject("Panel10").VCLObject("Edit2"),"Text",FormatedDate) But when I try to do the same using Keys (or even without the date, I try to type 123) and nothing happens (no error, no output): aqObject.SetPropertyValue(Sys.Process("Maint").VCLObject("MainForm").Window("MDIClient", "", 1).VCLObject("PLUForm").VCLObject("BackPanel").VCLObject("Panel10").VCLObject("Edit2"),"Keys","123") So I can achieve the desired result on fields that have the Text property, but on the fields that have the Keys property I am unable to get any data in those fields. There are no other obvious fields to use (no wtext, no caption, etc). I seem to only have Keys available. Re: Setting project variable using InputBox Got it. I followed a different structure to set the variable, as found here: https://support.smartbear.com/testcomplete/docs/reference/program-objects/variables/index.html Re: Setting project variable using InputBox Merci Benoit. It is now able to run. I am getting a different error now, but I might be able to figure it out. The Variables object does not contain a variable with the "EXEPath" name. But when I go in the project variables, I do see my variable there. I will work on it. Thank you. Re: Setting project variable using InputBox Hello, Yes it is expected, this is why my initial post mentioned the "user's input". It is because my test can be ran on several different folders on the computer. I ask the user first: Which folder you want to test? I know how to use a specific folder and I do that for machines with a single installation, but not on my own (or my team's) computer where I have about 30 folders to test. Re: Insert variable in Project log name Ok, thank you for the information. I didn't even know what was String concatenation until you mentioned it and I researched! I am not a programmer and my work place does not allow me to get training, so I am learning TestComplete and Python as I go. I checked the SmartBear help and from what I understand, it is doing a concatenation with a variable. Is it OK because it's used in a log only, or is it an older practice that is still left in the document? Not looking to be negative towards the help file but just trying to understand since I am pretty new to all of this. def FileVersionInfoSample(): FileName = Sys.OSInfo.WindowsDirectory + "\\notepad.exe" VerInfo = aqFileSystem.GetFileInfo(FileName).VersionInfo Log.Message("File version: " + str(VerInfo.FileMajorVersion) + "." + str(VerInfo.FileMinorVersion) + "." + str(VerInfo.FileBuildVersion) + "." + str(VerInfo.FileRevisionVersion)) Log.Message("Description: " + str(VerInfo.FileDescription[0])) Log.Message("Product: " + str(VerInfo.ProductName[0])) Log.Message("Company: " + str(VerInfo.CompanyName[0])) Setting project variable using InputBox Hello, Previously I was able to create a little sript to get the user to input a path at the start of the test, and then grab a EXE version from that path. My goal was to save the TestComplete Project log with the name of EXE + version at the end of the test. I realized that I couldn't do it because I was using "normal" variables and they weren't kept in memory. The help file directed me to project variables. I was able to create one, but I cannot find the structure to get the value of the variable + the user's answer to the prompt. So previous variable was: EXEPath = BuiltIn.InputBox("Find EXE path", "Enter EXE Program Files path:", "") Now I am trying things like: ProjectSuite.Variables.VariableByName["EXEPath"] = BuiltIn.InputBox("Find EXE path", "Enter EXE Program Files path:", "") But the second line shows error "Unexcepted TKN_NewLine" Solved