3

Im making a cross browser script using selenium in java + TestNg

In my tests @Test I need to pass the browser type in to Test Description. Something like below [to make report more meaningful]

@Test(description = "Login with Admin"- browser + browserNameVariable )

I pass "browser" as a testng parameter

Please advice.

RocketRaccoon
  • 2,559
  • 1
  • 21
  • 30
spe
  • 51
  • 1
  • 8

1 Answers1

1

Your browserNameVariablevariable should be constant. See answers from here here .

Community
  • 1
  • 1
RocketRaccoon
  • 2,559
  • 1
  • 21
  • 30