Passing field=value pairs across actions
I've created sets of field=value pairs that are associated with a single key. Think of Order A where price=10, qty=2, item=10.
My company has many testcases where Order A is created in one action, and another action modifies it. This is then followed by a verification of the fields in the modified order.
I realize there are several ways to do this, but I haven't found a nice way to do it in QTP. I would like to do it with VB Classes, but QTP doesn't seem to allow one to create an object in Action 1, modify it's properties in Action 2, and access those properties in Action 3.
I realize I can pass data in 'field=value' arrays, and I can store XML files, but these all add a lot of overhead in my opinion.
Has anyone found a simple way to accomplish what I'm describing ?
Re: Passing field=value pairs across actions
Use global variables by declaring them in a library file and associated it with your test.