Can I run a function before and after each test without calling it each time?
Question ID: 343
0
0

If I have multiple tests in my suite and I want to run a function before and after each test, Is it possible in Alchemy to run a function before and after each test without calling it each time? 

Marked as spam
Posted by (Questions: 11, Answers: 0)
Asked on June 16, 2023 1:39 am
3 views

Answers (1)

0
Private answer

Sure can - You can define a function that execute before and after each test at either the suite configuration level or the test configuration level.  Anything supplied in the test configuration will override anything supplied at the suite level.

Defining either of these will allow a function to execute before a test runs or after it completes successfully.

cm

Marked as spam
Posted by (Questions: 0, Answers: 38)
Answered on June 26, 2023 9:21 am

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

X
Scroll to Top