Set up the variable on suite level to share data across multiple test cases within a test suite?
Question ID: 351
1
0

In a suite I have a multiple tests and I want to create the global variable which I want to use across multiple test cases within a test suite, How can I do this in Alchemy IDE?

Marked as spam
Posted by (Questions: 16, Answers: 0)
Asked on June 16, 2023 2:35 am
15 views

Answers (1)

1
Private answer

Essentially, that is a context variable.  Check out this post here

cm

 

Marked as spam
Posted by (Questions: 0, Answers: 38)
Answered on June 26, 2023 8:34 am
0
That article you referred to seems to indicate that the context variable needs to be set from the command line to be global for the entire suite. I think the question is can a context variable be set at the suite level? I have the same question. If I create a context variable in a test, or set a value in a test, how can that context variable be passed to another test in the same suite?
( at June 28, 2023 9:44 pm)
0
I also needing to share a value across tests. For example test 1 creates and order. In the final step, I capture the new order number. Subsequent tests in the Suite need to do other operations to that order. How can I pass the order number to the subsequent tests?
( at August 7, 2023 9:50 am)

Welcome to Alchemy Center!
Please Log In to participate in the discussion.

X
Scroll to Top