Module 21 Regarding String Return Type in Keyword functions
Module 21 Regarding String Return Type in Keyword functions
M
Posted on 25/07/2016
Hi Ashish,
what is the significance of String Return type in keyword function in module 21 video.
where are we using it?
please let me know
for example:
public String clearTextField(String objectKey){ log("Starting function clearTextField"+ objectKey); element(objectKey).clear(); log("Ending function clearTextField with status "+Constants.PASS); return Constants.PASS; }
M
Replied on 25/07/2016
I keywords.java in "executeKeywords" . once you call the methods Ex: input and others ...
You collect the return value , Later You will PASS or FAIL
M
Replied on 25/07/2016
thanks for the input.... but didnt quite get you
M
Replied on 26/07/2016
public String clearTextField it will return that test has passed or failed?