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.

Get parameter from database

JhaviJhavi Members
edited November -1 in Sahi - Open Source
I'm trying to pass a parameter from database to a sahi function, but i don't now how.

-extraInfo/_extraInfo() is the only way?

Thanks

Comments

  • try _getDB()

    find it from the API Document
    Can help you?
  • My problem isn't so easy.
    I get some data from database in an Erlang module. This one communicates with a C program, which calls TestRunner class with parameters.
    When i do this without parameters there is no problem, but when i use -extraInfo/_extraInfo() fails.

    I downloaded the Sahi source and fixed TestRunner.class changing:
    testRunner.setInitJS(map.get("extraInfo"));
    for
    testRunner.setExtraInfo(map.get("extraInfo"));
    but still doesn't work.

    Is there any way to pass parameters to Sahi scripts?
Sign In or Register to comment.