I have a dialog that is recognized differently on winxp than it is on win2k. I want to declare the dialog twice using the same name using gui specifiers.
My problem is I'm still on version 5.0.2 and am not able to upgrade to 5.5 SP1 so I want to define my own winxp guitype. I've defined it but how do I get SilkTest to recognize the guitype that i'm using while compiling my libraries? GetGuiVersion() returns "5.1" for winxp and "5.0" for win2k.
Why not put a method call into your tag statement? The method checks the gui version and returns the appropriate string back to the tag. Recording won't understand any of this, but playback will execute correctly.
Because we sometimes test new OS's before Segue has had a chance to introduce working support for them, we always put a file on each machine with the OS set in it (in our case it's an .inc file but you could use a .txt or .ini file). There's a "use" statement for our .inc file in startup.inc. I suppose we could instead execute "ver" on the command line or call a dll.
Otherwise, you're going to have to see if you can jimmy 4Test.inc, I guess.