Forum Discussion

mengbinhao's avatar
mengbinhao
Contributor
29 days ago
Solved

How cant I define a param using in different testcase?

Hi there,

    I have a TC project which has several testcase (wrote by JaveScript),   I need to init a big Object before my Project, It only should be inited once, I know TC has a Event named OnTestStart executing before each  testcase run, which is not suitable for my case,  Does TC have a Event only trigger once like JUnit "BeforeAll"  annotation?

  • rraghvani's avatar
    rraghvani
    29 days ago

    Using the example shown in stackoverflow, it will be

    myInstance.publicMethod1()

    And also shown here