18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Null value is entered as "null"
I'm doing a data driven test using excel sheet to check invalid login. I've created one column for username and another for password and added some invalid values.
One row for username and password I left blank to check login with blank username and password.
When running the test, it is entering the value as "null" in both username and password fields. So i'm not able to check for blank username and password using excel sheet. It is working fine with .csv file.
The log shows for the particular blank row as
_setValue(_textbox("uname"), "null");
_setValue(_password("passwd"), "null");
Please help me with this.
One row for username and password I left blank to check login with blank username and password.
When running the test, it is entering the value as "null" in both username and password fields. So i'm not able to check for blank username and password using excel sheet. It is working fine with .csv file.
The log shows for the particular blank row as
_setValue(_textbox("uname"), "null");
_setValue(_password("passwd"), "null");
Please help me with this.
This discussion has been closed.
Comments
I haven't checked yet, but I think blank and null may not be easily distinguishable when reading from Excel.
Can you add a small function to check if the value is null and return blank?
Regards,
Narayan
It is working now after adding the function you gave
Regards,
Anoop