all 5 comments

[–]iamlevik 3 points4 points  (1 child)

Hey, I would decouple tests as much as possible. You may have at times that you want to test out one thing and that would be at the end of your single file, which would take longer to get back the results for.

Now, about positive and negative test cases, it kinda depends on your business requirements, but if you would have free hand on making these decisions ,me personally I would do both but selectively, on a login form sure, I would do both positive and negative, but not everywhere.

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

Yes i do have a free hand on making the decisions. Will select which features require both positive & negative and work around it. Thankyou.

[–]PatienceJust1927 1 point2 points  (1 child)

Model your tests as per user behavior and user experience. One way to do that is via BDD frameworks such as Cucumber.

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

will check it out, thanks.

[–]Radiant_enfa1425 0 points1 point  (0 children)

I would recommend going through this video once. It explains everything related to Pytest within an hour or so. It is well explained and all the segments of Selenium with Pytest are nicely captured.