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.

To write functions in Java

BhaswanthBhaswanth Members
edited November -1 in Sahi - Open Source
Hello,

I am recording script in java can any one help me, how to write a function in java....


Thanks & Regards,
Bhaswanth.N

Comments

  • MujhahidMujhahid Members
    You can write a function as follows:
    Public void namefunction (parameter)
    {
    / / here you can copy the code that generates sahi
    }
  • Hi,

    the parameters should be give in ${parameter} or the normal parametrs and one more thing i would like to ask is how to perform data driven testing through CSV file
  • SumitraSumitra Members
    Hi Bhaswanth,

    Use regular java syntax. When using the Java driver, all you get from Sahi is the ability to drive the browser. You will have to use your own/other libraries to accomplish file reading, reporting etc.

    Regards
    Sumitra
  • VenkyVenky Members
    Hi Bhaswanth,

    For detailed information on Data driven testing,

    Refer this URL,

    http://sahi.co.in/w/data-driven-testing

    Thanks,
    Venky.
Sign In or Register to comment.