Required Fields TestScripts in KDF | Selenium Forum
M
Posted on 09/01/2017
Hi Group,
Please provide me some inputs on handling required fields validation Test Script on a web page (say 5-10 fields are required out of 25) using KeyWord Driven Framework.

Another scenario is when a submit click is performed on blank screen the required fields error messages are displayed on screen header - 5 rows of red X mark images along with the text. This is directly related to the total number of required fields not eneted.
What is the best way to cover all possible combinations of Required fields Error (All 5, 4, 3, 2, 1, AND none) IN KDF Framework.

Please give some suggestions.
Thank you.
Raju

M
Replied on 10/01/2017

i could not understand your problem can you repeat?


M
Replied on 10/01/2017

How to write a KDF Testscript/Steps to validate Multiple Required Fields scenario on a web page.
Assume the system displays ALL The Required Field Error Messages on top of the page after submit click.

Thanks.


M
Replied on 12/01/2017

[quote="PRaju":3codx4za]How to write a KDF Testscript/Steps to validate Multiple Required Fields scenario on a web page.
Assume the system displays ALL The Required Field Error Messages on top of the page after submit click.

Thanks.[/quote:3codx4za]

you'll have to gettext() of error message via xpaths and assert the retrived value in your test.