18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
in extjs data is not loading while using sahi proxy
hi all,
i am new to sahi, in our organization we are developing a web application using extjs framework. i am started using sahi from yesterday.while using sahi proxy the data is not getting loaded in the grids. what may be the issue? is there is any specific settings for extjs framework.i checked the extjs demo in sahi sample scripts. thanks anybody experienced the same issue means clarify me.thanks in advance..if i remove the proxy settings the data is getting loaded.
i am new to sahi, in our organization we are developing a web application using extjs framework. i am started using sahi from yesterday.while using sahi proxy the data is not getting loaded in the grids. what may be the issue? is there is any specific settings for extjs framework.i checked the extjs demo in sahi sample scripts. thanks anybody experienced the same issue means clarify me.thanks in advance..if i remove the proxy settings the data is getting loaded.
Comments
This can happen if the data that is being sent back is injected with Sahi's code when it goes through the proxy.
Check what the url of the file is which populates the data. (You may want to ask your developer) If it is, for example, /my/data/users.custom.xml, then
1) Open sahi/userdata/config/exclude_inject.txt
2) Add
.*custom[.]xml
at the end of it
3) Restart Sahi, clear browser cache and check again.
Regards,
Narayan
Actually the data is passed as Json array and there is no particular file to populate the data. In our website php is used only to fetch data from the db and it is passed in json format to ExtJs.
I tried with all php scripts.. nothing worked
How can I send you the screen shot?
Just add
.*callback=.*
at the end of sahi/userdata/config/exclude_inject.txt,
restart Sahi, clear browser cache, and it should work properly.
I am having this same problem with my AJAX application completely based on ExtJS framework.
We did some POC to see if Sahi works with AJAX application and result was successful. Now as we have our application ready we want to evaluate a complete end-to-end test case but facing same problem as discussed in this thread.
Our application is based on ExtJS and it gets the JSON response from the server. When Sahi proxy is OFF everything works fine but when it is on the page is not displayed properly and we get javascript errors like “Object Expected” etc….
As suggested in this thread I have checked the “sahi/userdata/config/exclude_inject.txt” file and it has “.*callback=.*” at its end. I am using Sahi’s latest version (3.5).
Just now I tested it in FireFox (3.6.16) and it seems working there but not in IE8.
Can you please help us out? Is there any other fix for this problem.
Thanks in Advance.
Could you try clearing browser cache in IE and try again? Also check what your AJAX request URLs look like and try adding the correct pattern. As a general rule, if things have started working properly on Firefox, then they should also work on IE, as far as exclude_inject is concerned. If this still does not work, try looking at the traffic logs as mentioned here: http://sahi.co.in/w/trouble-shooting-sahi
Regards,
Narayan
Thanks for your quick response.
As suggested on the trouble shooting link I looked at the traffic logs and added one more exclude pattern to the exclude_inject.txt file and now the page is displayed properly but got another problem… Sahi controller is not capturing all the events.
Basically following is our site structure.
Alter login we have a main page which defines the layout of the site which is “../layout.vm”. This page has HTML+<script tags>+<link tags for css>.
Once this page is displayed the URL remains same i.e. “../layout.vm” and all the calls to the server are AJAX calls and the response is JSON string. It seems that if I give .*layout[.]vm in the exclude_inject.txt file the page is displayed properly but Sahi stops working as there is no injected code in this file.
How can I make both work?
Regards,
Chetan
Check if there is some other parameter that is passed which signifies that it is an AJAX request. (You may want to ask your developers). Is it possible for you to send the traffic log of the main vm page and the AJAX vm request/responses? Please zip and email to support@sahi.co.in
Regards,
Narayan
The logs and the screen shots are sent to support email address with subject “Traffic logs for the topic id 1878”
Earlier we were testing our application on IE8 and didn’t face any problem but whenever we were starting the Sahi proxy we used to get some javascript errors.
When we test our application on IE7 without Sahi proxy we got same errors which were not visible in IE8.
So first we resolved all those errors using IE7 and then tried with IE8 + Sahi proxy and could record the test cases properly.
We are now further evaluating the Sahi tool.
Thanks,
Chetan
As said earlier when we fix issues which appear in IE7 our applications works with Sahi.
Actually our web application is compatible with IE8 only and doesn't work properly on IE7.
It seems that Sahi emulates the IE7 functionality. How can we make it work properly with our application which work with IE8.
I am using Sahi 3.5 version. Following is the setting in the browser_type.xml
<browserType>
<name>ie</name>
<displayName>IE 8</displayName>
<icon>ie.png</icon>
<path>$ProgramFiles\Internet Explorer\iexplore.exe</path>
<options>-noframemerging</options>
<processName>iexplore.exe</processName>
<useSystemProxy>true</useSystemProxy>
<capacity>5</capacity>
</browserType>
Can you please suggest?
Thanks in advance.
Chetan
Can you please comment on my question above. We are stuck at this point.
Thanks in advance,
Chetan
Any comment on my question above related to Sahi working in IE7 mode.
Thanks in advance,
Chetan
Sahi does not emulate a browser. It uses the browser. If you have IE8 on your machine, Sahi will use it irrespective of what it is called in browser_types.xml. If you believe that Sahi does not work on IE8, we can look at it.
If possible, please create a new post. These questions are no longer related to Ext-JS.
Regards,
Narayan
<meta http-equiv="X-UA-Compatible" content="IE=8">
Thanks,
Chetan