cancel
Showing results for 
Search instead for 
Did you mean: 

How to use 'Set Variable value' at project suite, in another test

SOLVED
Nayak_Ragh
Occasional Contributor

How to use 'Set Variable value' at project suite, in another test

I am trying to use a Vendor ID captured from Test-1 using 'Set variable value', in Test-2.

Variable is declared at Project Suite level and The value is successfully captured in Test-1. I have used the same variable at another step in Test-1 and it is working fine.

This is how the data was captured at Test-1:

Operation : VendorID [ProjectSuite]

Value :

Aliases.Ax32.Vendors.TaskPageLayout.PartHostSplitContainer.SplitterPanel.NativeWindowControl.NativeWindowWithEvents.VendTable.AxTabCtrl.AxPaneWnd.AxPaneWnd.General.AxPaneWnd.Identification.Vendor_account.Value

 

This is how I am trying to display the data at Test-2:

Operation : Keys

Value : ProjectSuite.Variables.VendorID

 

But the operation is failing but the value is not getting passed. Kindly advise if I am missing something.

1 ACCEPTED SOLUTION

Accepted Solutions
tphillips
Community Leader

Re: How to use 'Set Variable value' at project suite, in another test

I just tested this out. You need to run both tests in the same execution plan, with Test1 first followed by Test2.

 

If you run the first test by itself, followed by the second test by itself, the variable value is not persistent. It will only be set for the duration of the execution.


--------------------
QA Systems Architect

View solution in original post

1 REPLY 1
tphillips
Community Leader

Re: How to use 'Set Variable value' at project suite, in another test

I just tested this out. You need to run both tests in the same execution plan, with Test1 first followed by Test2.

 

If you run the first test by itself, followed by the second test by itself, the variable value is not persistent. It will only be set for the duration of the execution.


--------------------
QA Systems Architect

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors