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.

No response from Sahi controller.

ravinderravinder Members
edited November -1 in Sahi - Open Source
Working on .NET application automation. I have 8 pages which are like different user forms to accept input from user. On 8th page I have Submit button, after clicking that it takes around 90 to 150 seconds. I have recodred all the steps and when I playback at last stage i.e. Submit button Sahi controller do not respond. I have one assert statement after Submit button on next page.

I have tried evrything from this post: http://sahi.co.in/forums/viewtopic.php?id=2236

script.max_cycles_for_page_load=2400. I have changes it value upto 8000 and getting below error message.

Logging exception:
Step >_sahi.setServerVar('___lastValue___1308478914701', _sahi._getText(_sahi._cell(/Scheme Sch_aut34 has been successfully created with scheme reference/)));< did not complete in 830 seconds. at 19-Jun-2011 11:37:07

But nothing working for me.

Could you please suggest solution for this.

Comments

  • SumitraSumitra Members
    Hi ravinder,

    There might be a problem with _getText() in the following code:
    _getText(_cell(/Scheme Sch_aut34 has been successfully created with scheme reference/)));
    

    Can you let me know what exactly you are trying to achieve here?

    Regards
    Sumitra
  • Hello Sumitra,

    I am using _gettext() with regular expression, please check below code

    var $success=_getText(_cell(RegExp("Scheme "+$schemename+" has been successfully created with scheme reference")));

    I need a string starting with "Scheme "+$schemename+" has been successfully created with scheme reference". Here schemename is a variable which changes every time and success is another variable in which I am getting required string for assertion.

    Kindly revert for more information.

    Thanks,
    Ravinder
  • Hi ravinder,

    I am not sure why you use - RegExp("Scheme "+$schemename+" has ................

    just to inform you if you are using regular expression then it's string format is - "/constant_value_Here.*/" -> it will match with string start with "constant_value_Here" then aynt value being appended to that.

    but in your case I think you are preparing the exact string which you want to match with your exact expected string. so you don't require to use regular expression then. you only require to use regular expression if you have string who's some part is dynamic & you just want to match that with your string having regular expression I suggested.

    just let me know if you still face any issues.

    Regards,
    Ashish
  • SumitraSumitra Members
    Hi ravinder,

    The usage of the RegExp is correct.

    Check if _getText(_cell(RegExp("Scheme "+$schemename+" has been successfully created with scheme reference"))); is executing correctly.

    Check if the _cell is loading dynamically through Ajax Request.

    Kindly check if "$schemename" is in right case.

    Regards
    Sumitra
Sign In or Register to comment.