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.

How to create XML or DB report in Sahi Pro trial 3.6_20110721

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

I just could not figure out how to make XML or DB report work.
1) install trial Sahi Pro.
2) Modify sahi.properties under c:\sahipro\config.
##

reports.filesystem.html.enabled=true
reports.filesystem.xml.enabled=true
reports.db.enabled=true
reports.sql.enabled=true

# Database logging.
# Tables are created using sahi/userdata/config/db/create_report_tables.sql
db.driver_name=org.h2.Driver
db.jdbc_url=jdbc:h2:$userDir/database/db0;DB_CLOSE_DELAY=-1
db.user_name=sa
db.password=
db.script_gen_xsl=$userDir/config/db/script_sql_gen.xsl

3) Check userdata.properties under C:\SahiPro\userdata\config. No above entries.
4) Save the changes. Restart SahiPro and run a script. No XML or DB report created.
Did I miss some something? Thanks.

Comments

  • Hi stevenil,

    How are you executing the DB reports? Kindly post the usage.

    Also, have a look at the following URL:

    http://sahi.co.in/forums/viewtopic.php?id=2889

    Regards
    Sumitra
  • How are you executing the DB reports? No, I did not execute anything.
    I thought if I set the reports.db.enabled=true, the sahi pro will automatically create db report. Same as XML. From trial version documentation, I did not find any detail steps of that execution.
  • Hi stevenli,

    After you make changes in sahi.properties or userdata.properties, Restart Sahi. You will have to execute the script/suite file for which you need XML or DB reports to be created.

    Execute from the command line: "drun.bat ..\scripts\dummy.suite http: //my-app-url ie".

    Now you could see the db reports will be created in <sahi-home>/userdata/database and the XML,SQL reports will be created in <sahi-home>/userdata/logs/playback.

    Let me know if you face any problem.

    Regards
    Sumitra
Sign In or Register to comment.