running a geb test from a java class

前端 未结 3 1202
终归单人心
终归单人心 2021-01-22 18:22

I\'ve recently stumbled across geb and it looks like a good way to perform integration tests on our web applications. Our platforms are all java based and from reading that

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-22 18:44

    I stumpled upon this question while searching a Geb-TestNG example. Here is what is working for me:

    import geb.testng.GebTest
    import org.testng.annotations.Test
    
    
    class GroovyYourTestClass extends GebTest {
    
        @Test
        void "should test something"() {
            to YourPageObject
            // ...
        }
    }
    

提交回复
热议问题