ContributionsMost RecentMost LikesSolutionsAnyone else having problems when exiting TC 9.30?Hi all, Successfully, and trouble free upgrade from 9.20 to 9.30 yesterday. However, since then whenever I go to File/Exit, either: a) The project suite is closed ok, but then TC won't exit b) The project suite will not close, and then TC won't exit. In either situation, after a second or two, the window title includes "(Not responding)" Not sure if this is a problem with the machine on which we have TC installed, or a problem in 9.30. On the basis it *MAY* be a problem our end, I don't want to raise an official ticket etc yet... Anyone else having similar issues? TestComplete with PowerBuilder App.... TabSequence PropertyHi All, I'm testing an app developed using PowerBuilder. I've been trying to work out how different fields are either enabled / disabled (greyed out) - since looking at them in the Object Browser in TC shows ALL fields as enabled, not read-only etc etc - ie, all such properties have the same value regardless of if the field is disabled or not. Talking to the Dev's here, it apparently is down to the objects "TabSequence" property. 0 = disabled, anything else = the object's tab order number. Trouble is, Dev themselves admit TabSequence is available in the PowerBuilder Designer, and in code. TC does NOT list this as a property. Any suggestions on how I could access this property via TC? Re: TestComplete command line, and functions with parametersThanks all - you were spot on - a parser function was exactly what was needed, working (so far) very nicely! Thanks!TestComplete command line, and functions with parameters Hi All, I'm trying to work out how, from the command line I can: Start TC, pointing to suite, project, script, and function, where the function takes a string parameter. For easy explanation purposes imagine a test function: function test2(msgtxt) { MessageDlg(msgtxt,0,0,0); } I want to be able to do something like: TestComplete.exe mysuite.pjs /r /p:myproject /u:scriptname /rt:test2("Hi Steve!") /exit /ns But this produces 2 TC error dialogs: "The command line is invalid", and then "The command line is invalid. The test cannot be found". PLEASE tell me what I am trying to do CAN be done? If so, how? The only alternative I can think of is setting "Hi Steve" to some temporary system env variable, and getting TC function to pick that sys var up... But that seems rather "over the top" as solutions go? Thanks Steve SolvedRe: DB Table Project Variables - change source in codeI figured that might be the case! Many thanks Tanya. Going forward, a possible enhancement in a future release?! Cheers Steve Re: DB Table Project Variables - change source in codeHi Tanya, So I have 2 project level variables, both of type DBTable.... In Project properties, I can see that "TestDriver" has a default value of "{Worksheet: "AmritTest1"; workbook: "..\..\AmritTest1.xlsx"}" While "ObjDefFile" has a default value of "{no table}". This is because I want to point ObjDefFile to a number of different files (could be XLS, or CSV, not yet made my mind up, but will always be the same filetype!) - and the path to this file will come from a value extracted as part of processing "TestDriver". So one of the columns in TestDriver might contain: c:\file1.xls c:\file2.xls c:\file3.xls As the script reads these different values, I need "ObjDefFile" to use the contents of these files for subsequent processing in the script. ie, ObjDefFile would need it's "default value" to change programmatically such as: "{Worksheet: "localdata"; workbook: "c:\file1.xls"}" "{Worksheet: "localdata"; workbook: "c:\file2.xls"}" "{Worksheet: "localdata"; workbook: "c:\file3.xls"}" Is this possible? DB Table Project Variables - change source in codeHi All, I have a Project Variable of type "DB Table". Actually, I have 2 of them! Iteratively processing the first, produces a return value which is a file path - and I need to use this file path as the source for my 2nd Project Variable. I've tried all sorts along the lines of Project.Variables.ObjDefFile = ObjDataPath; But everything I've tried results in a JScript error and the script terminating. Incidentally, "ObjDataPath" is a path to a CSV file... I could probably arrange for this to be xls / xlsx, but if we could work with a CSV as a DB Table (or similar), that'd be good! Any suggestions? Thanks!Re: QTP "reporter.reportevent micpass / micfail" in TC?Hi Deepak, Thanks for that... It seems using Log.Checkpoint is the way forward to get a "green tick" ... I guess it's a sort of "psychology" thing of QTP vs TC .... I'm very much familiar with micPass/micFail... and just need to get used to checkpoint/error instead ;) Thanks SteveRe: Event Handling in TC script produced by coding not recordingThanks Tanya, In hindsight, I was being a little stupid - I was wanting the event to fire on the appearance of the unexpected window, without my script then trying to proceed(!). Anyway, that makes more sense now. However, can you now please explain.... In the project properties window, there is the "On unexpected window" section, with the 6 checkbox options. My understanding is that 4 of these (click on focused controls, press esc, press enter, and send wm_close) should, one way or another, close the unexpected window. In fact, I had to add a "call window.close" to my unexpected window handler, as none of these 4 options closed the window. What am I misunderstanding here - what are these 4 options for? Thanks Steve QTP "reporter.reportevent micpass / micfail" in TC?Hi All, I'm from a QTP background, and in a QTP script I could write something like: if (a=b) then reporter.reportevent micpass, "a equals b, yippee" else reporter.reportevent micfail, "a is different to b. this is not good" endif However, if I'm understanding correctly, in TC (jscript) this becomes: if (a=b) { log.checkpoint ("a equals b, yippee"); } else { log.error ("a is different to b. this is not good"); } endif I appreciate this isn't a HUGE difference, but I just want to check: a) is there something "closer" to QTPs micpass/micfail (arguably more "readable") b) is my understanding above correct? Thanks Steve