Home > other >  Login web test automation function question?
Login web test automation function question?

Time:11-22




As shown in figure, test the login interface function, each test case execution of a test results compared with expected results through the assert, consistent test pass, the results are not consistent test fails,

So the question: are you through what way to interpretation the returned results and predicted results do matching simple judgment is based on what you are to do? Elements on the page? Or url? Can be encapsulated into a method to call?

CodePudding user response:

A login test, write a use case is ok, ready to data, do branch, different results for different assertions

CodePudding user response:

If you have technical questions, if you for software testing, interface testing, test automation, interested in exchange of experience are welcome to join the interview software testing technology group: 695458161, issued by the group of free information is the essence of the author more than 10 years test career, and peer communication technology with great god together,

CodePudding user response:

Elements on the page and the url can be used for claims! General use data-driven DDT or Pytest params realize!

CodePudding user response:

This is mainly through real page response results are consistent with the assert statement you wrote, judge, for example, if you write the correct password, then can login successfully, the page automatically jumps to the system home page, you can whether to retrieve text to the system homepage to assert that if access to the text and assert statement you wrote words consistent, on behalf of the login is successful

CodePudding user response:

reference 1st floor qq_46809561 response:
a login test, automation write a use case is ok, ready to data, do branch, different results of assertion
branch to judge what is the meaning?

CodePudding user response:

If the else?

CodePudding user response:

Well is much more I want to
  • Related