Facebook
From Tiny Owl, 4 Years ago, written in Plain Text.
This paste is a reply to Re: Untitled from Tacky Rhinoceros - view diff
Embed
Download Paste or View Raw
Hits: 385
  1.  public class XDDD extends DriverBase {
  2.  
  3.  @DataProvider
  4.     public Object[][] roles() {
  5.         return new Object[][] {
  6.                 {Roles.A},
  7.                 {Roles.M}
  8.         };
  9.     }
  10.  
  11.     Roles role;
  12.     @Factory(dataProvider = "roles")
  13.     public XDDD(Roles role) {
  14.         this.role = role;
  15.     }
  16.  
  17.  
  18.     @BeforeClass
  19.     public void gettingUrl() throws IOException, URISyntaxException {
  20.  
  21.         driver.get("url");
  22.     }
  23.  
  24.  
  25.     @Test
  26.     public void test() {
  27.         assertThat(2, equalTo(2));
  28.     }
  29. }