because of the the issuehere I was wondering if there was a way to programmtically return the version of WR that the script is currently running on...
Never been able to do that with WinRunner itself, other than to:
Add an item under the wrun.ini file in the [WrEnv] section (example is 'Version=7.6')
Then use getenv to pull the info attached to the Version into a variable for comparison.
Not sure how this will help what you need as it deos rely on the system having only one version of WinRunner it can run.
Insanity: doing the same thing over and over again and expecting different results
I have two machines. one with WR7.6 and one with WR 7.5 ... i wanted to be able to run scripts on either machines.
as most of my scripts are in 7.5 ...im holding off on upgrading my 7.5 machine to 7.6 until i can get a hold of the differences each my hold that may bomb my scripts
why not just upgrade both to 8.0?
good point, i just checked, my company has licenses for 8.0 as well...so...anyone know how this will affect my scripts that are written in 7.5? or will i have to figure that out as well?
you might have to change a couple of things. I found that when I went from 7.6 to 8.0, controls I had to create work arounds for worked as previously expected (but didn't - hence the workaround).
For the most part though, there weren't that many changes needed.
I'd say don't do them both at once. Upgrade one-verify your scripts, then upgrade the second system
Originally posted by xospecialk: because of the the issuehere I was wondering if there was a way to programmtically return the version of WR that the script is currently running on... <font size="2" face="Verdana, Arial, Helvetica">You will need the cso2 function library:
get_reg_value(HKEY_LOCAL_MACHINE,"SOFTWARE\\Mercur y Interactive\\WinRunner\\CurrentVersion","Version", win_runner_version);
report_msg("Running Version: " & win_runner_version);
ahhh thank bpolitzer...
but 8.0 seems to have solved my problem with the text in my other thread.
HOWEVER...im digging around and i can't seem to find out if 8.0 has java support?
well - my day is done - I've learned something new! [img]images/icons/smile.gif[/img]
I think it still uses the addins from 7.6 - but there is a patch you have to install to get them to work.
I think it is located in the download section - I remember seeing it the last time I was poking around in that area.
I'm using Java addin 7.6 without any patch with my WR 8 version - and it's working!