Forum Discussion

Camo's avatar
Camo
Occasional Contributor
4 years ago

How to write hook with annotation and order

I need to use hook with tag and order. If I try to write 

@After("@last", order=1)

idea shows an error: Annotation attribute must be of the form 'name=value'. Can somebody tell me please what is the correct form? If I try @After(tags="@last", order=1) it is also incorrect. 

  • the solution is

    @After(value="@last", order=1)

     

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    I believe this is not related to TestComplete, is it?

     

  • Camo's avatar
    Camo
    Occasional Contributor

    the solution is

    @After(value="@last", order=1)