page object pattern

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

page object pattern

shankarkurella
i was following the same hierarchy and coding the same way as you said in previous training videos...

i was stuck at executing the page object test, with an error message below mentioned when trying to execute it from webdrivertest.java
""Parameter 'browser' is required by @Configuration on method launch but has not been marked @Optional ""
what i felt was in the page object pattern related class we are extending seltestcase.java right  which is using a parameterized method.... in the testng.xml
so do i need to execute it avoiding testng.xml


Reply | Threaded
Open this post in threaded view
|

Re: page object pattern

softwaretestingforum
Administrator
Look like you did not mark "parameter" as "optional" which is needed when using "parameter" in method and executing it as testng method. That is without using testng.xml file which provides the parameter value. See this for more -

http://testng.org/doc/documentation-main.html#parameters-testng-xml
~ seleniumtests.com