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.

Facing Problem in .suite File

ChaitanyaChaitanya Members
edited December 2013 in Sahi - Open Source
Hello,
I am facing problem in running .suite file.
Scenario is I have 4 module in project. for each module I make .suite file(4 .suite files) in all those file sub module files are there. But when I trying to 1 suite file for its sub menu _navigateTo() API shift from my given menu to another menu, which is not specified in .suite file.
When I am trying to run those sub menu files individually they run fine. but when to integrate those files they facing problem.
Please help me.

Thanks,
Chaitanya

Best Answers

  • Sorry, but I don't understand your question, I don't even know where to start asking to clear things up. So somehow your _navigateTo() is working in playback but not in a suite?
  • Hi Chaitanya,

    Can you post your file (.suite) or which contains _navigateTo()?

Answers

  • Hello,
    Please any one help me..
    its argent.

    Thanks,
    Chaitanya
  • Hello globalworming,
    Yes exactly..
    _navigateTo() is not working in .suite file.

    Thanks.
  • ChaitanyaChaitanya Members
    edited December 2013
    Hello,

    Here is my code in .suite file.

    _include("--path--/login.sah");

    _include("--path--/Exc_Emergency_Category_Add.sah");
    //statements in Exc_Emergency_Category_Add.sah file
    _navigateTo("--path--");
    _click(_link("Home"));
    _click(_link("Corp. Directory"));
    _click(_link("Emergency Services"));
    _click(_span("Emergency Category"));
    //end of statement

    _include("--path--/Exc_Emergency_Category_Update.sah");
    //same as above file
    _include("--path--/Exc_Emergency_Category_Delete.sah");
    //same as above file

    _include("--path--/Exc_Emergency_Sub_Category_Category_Add.sah");
    //statements in Exc_Emergency_Sub_Category_Category_Add.sah file
    _navigateTo("--path--");
    _click(_link("Home"));
    _click(_link("Corp. Directory"));
    _click(_link("Emergency Services"));
    _click(_span("Emergency Sub-Category"));
    //end of statement

    _include("--path--/Exc_Emergency_Sub_Category_Category_Update.sah");
    _include("--path--/Exc_Emergency_Sub_Category_Category_Delete.sah");

    _include("--path--/Exc_Emergency_Contact_Category_Add.sah");
    _include("--path--/Exc_Emergency_Contact_Category_Update.sah");
    _include("--path--/Exc_Emergency_Contact_Category_Delete.sah");

    _include("--path--/Exc_Emergency_Contact_Sub_Category_Add.sah");
    _include("--path--/Exc_Emergency_Contact_Sub_Category_Update.sah");
    _include("--path--/Exc_Emergency_Contact_Sub_Category_Delete.sah");

    actually flow is to add category 1st then add sub-category.
    but in this situation tab directly moves to sub-cateogry
    when I run all those file individually then they run file but at the time of integration it face problem
    please help me.

    Thanks,
    Chaitanya
  • Hi Chaitanya,
    A .suite file is basically a compilation of several script files which need to be run together. It does not contain a script but only the relative script path and its start URL.
    Please have a look at the documentation below:
    http://sahi.co.in/docs/v5.1.0.0/using-sahi/quick-tutorial.html#Suites - Automating playback of multiple scripts

    Regards,
    Pratyush
Sign In or Register to comment.