Environment Variable transition between two components.
When UFT moves from one component to another during execution from QC, I am losing all the user defined Environment Variables.
This code piece was working fine in QTP 11. I just upgraded to UFT and find that same piece of code fails to work anymore.
hope you have all latest patches applied. UFT doesn't go well with BPT yet if you are using it.
Do you mean BPT components? If yes then by design HP doesn't want intercommunication within components using Environment variables. So if it worked earlier it was a bug which got fixed
It was a "feature" introduced as a consequence of the attempt to improve BPT performance by converting from components to a single script at run time in 11.0. If in 11.5 they've gone back to loading individual components at run time then this is no doubt why the "feature" has disappeared. If this is the case there may be a couple other disgruntled people as I've noticed other people were taking advantage of this "feature".
Btw, is your script still running inside a BPTWrapper test or is it running as individual components? Because if BPTWrapper is not working then Environment variables will not as well