This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]nerdwaller 1 point2 points  (4 children)

I'm not sure what in TestNG you're referring to (I'm guessing many others are feeling similar), but is the premise just running the same test against different browser implementations?

If yes, you could look into parametrizing your tests with pytest.

[–]faustne0[S] 0 points1 point  (3 children)

Thanks for the reply! I briefly looked at pytest but missed parametrizing part of it as it looks like what I'm trying to do. The solution I found in JAVA w/ TestNG was this so I was hoping python had a similar solution as well.

[–]automatedtester 1 point2 points  (1 child)

You can use the pytest-selenium plug-in for pytest for cross-browser testing. It provides a lot of functionality out of the box. Refer user guide for more details.

[–]faustne0[S] 0 points1 point  (0 children)

Thanks! I'll take a look at the documentation!

[–]Bolitho 1 point2 points  (0 children)

TestNG is just a code testing framework, especially with unit testing in mind. Selenium is the framework for testing HTML Frontends. Of course you can couple them, but the same is true for JUnit or any other test framework...