18 January 2026:


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.

Data driven testing using excel sheet

BhaswanthBhaswanth Members
edited January 2011 in Sahi - Open Source
Hi,
I am new to sahi, I was trying data driven testing by reading it from Excel and am having a problem, when am trying to insert integers to a text field it is displaying the integer in decimals.

E.X: n exel sheet i have given 2345 but in text field it is displaying as 2345.0

plz reply asap.

Comments

  • narayannarayan Administrators
    Input the value if 2345 as text by adding a single quote ( ' ) before the number, and check

    For example instead of

    2345

    type

    '2345

    If in your script, you want to convert a string to number, you can use parseInt function.

    Eg.

    To get number 2345 from string "2345", use parseInt("2345")


    Regards,
    Narayan
  • Thank you Narayan
    the problem is solved by adding ( ' ) before the number
This discussion has been closed.