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.

Problem when upgrade sahi 2010-02-21

ibsolutionibsolution Members
edited February 2010 in Sahi - Open Source
Hai,

when i upgrade to new release, my testing script have a problem.

sahi-20100221


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script src="/_s_/spr/domainfix.js"></script>
<script src='/_s_/spr/concat.js'></script>
<script src='http://sahi.example.com/_s_/dyn/SessionState/state.js'></script>;
<script src='/_s_/spr/language_pack.js'></script>
<script>
document.write("<script src='/_s_/dyn/Player_script/script.js?sahisid="+ _sahi.sid +"'></scr" + "ipt>");
</script>
<script src='/_s_/spr/playback.js'></script><html xmlns="http://www.w3.org/1999/xhtml">;
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<title>Informatic Business Solution [ver 1.6]</title>










<link rel="stylesheet" type="text/css" href="/accounting/zkau/web/8914214/zul/css/normie.css.dsp"/>


<script type="text/javascript" src="/accounting/zkau/web/8914214/js/zk/zk.js.dsp" charset="UTF-8">
</script>
<script type="text/javascript" src="/accounting/zkau/web/8914214/js/zk/lang.js.dsp" charset="UTF-8">
</script>
<script type="text/javascript">
zk_ver='3.6.3';
zk.build='09110309';
zk_procto=900;
zk_tipto=800;
zk_resndto=-1;
zk_clkflto=0;
zk.eru={};zk.erusp={};

</script>





</head>
<body>

<div class="zk" id="z_gp_0" z.dtid="ggpn" style="width:100%;height:100%;" z.zidsp="page" z.au="/accounting/zkau">
<div id="z_gp_1" z.type="zul.wnd2.Wnd2" z.autoz="true" class="z-window-embedded" z.zcls="z-window-embedded" z.onOK="true" z.minheight="100" z.minwidth="200">


<div class="z-window-embedded-tl"><div class="z-window-embedded-tr"></div></div>
<div class="z-window-embedded-hl"><div class="z-window-embedded-hr"><div class="z-window-embedded-hm">
<div id="z_gp_1!caption" class="z-window-embedded-header">





Aplikasi inventory [ver 1.6]



</div></div></div></div>





<div id="z_gp_1!cave" class=" z-window-embedded-cnt">

<div id="z_gp_2" align="center">
<table id="z_gp_3" z.type="zul.box.Box" class="z-vbox" z.zcls="z-vbox" z.vert="true" cellpadding="0" cellspacing="0">


<tr id="z_gp_4!chdextr" z.coexist="true" valign="top"><td align="left"><table id="z_gp_4" z.type="zul.box.Box" class="z-hbox" z.zcls="z-hbox" cellpadding="0" cellspacing="0">
<tr id="z_gp_4!cave" valign="top">


<td id="z_gp_5!chdextr" z.coexist="true" align="left"><span id="z_gp_5" class="z-label" z.zcls="z-label" class="z-label">User</span></td>


<td id="z_gp_5!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_gp_6!chdextr" z.coexist="true" align="left"><div id="z_gp_6" class="z-separator-hor" style="width:28pt;" z.zcls="z-separator-hor"> </div></td>


<td id="z_gp_6!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_gp_7!chdextr" z.coexist="true" align="left"><span id="z_gp_7" class="z-label" z.zcls="z-label" class="z-label">:</span></td>


<td id="z_gp_7!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_gp_8!chdextr" z.coexist="true" align="left"><div id="z_gp_8" class="z-separator-hor" style="width:4pt;" z.zcls="z-separator-hor"> </div></td>


<td id="z_gp_8!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_gp_9!chdextr" z.coexist="true" align="left"><input id="z_gp_9" z.type="zul.vd.Txbox" class="z-textbox" z.zcls="z-textbox" type="text"/></td>


</tr>
</table></td></tr>


<tr id="z_gp_4!chdextr2" class="z-vbox-sep"><td><img style="width:0;height:0"/></td></tr>


<tr id="z_gp_a!chdextr" z.coexist="true" valign="top"><td align="left"><table id="z_gp_a" z.type="zul.box.Box" class="z-hbox" z.zcls="z-hbox" cellpadding="0" cellspacing="0">
<tr id="z_gp_a!cave" valign="top">


<td id="z_gp_b!chdextr" z.coexist="true" align="left"><span id="z_gp_b" class="z-label" z.zcls="z-label" class="z-label">Password</span></td>


<td id="z_gp_b!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_gp_c!chdextr" z.coexist="true" align="left"><div id="z_gp_c" class="z-separator-hor" style="width:4pt;" z.zcls="z-separator-hor"> </div></td>


<td id="z_gp_c!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_gp_d!chdextr" z.coexist="true" align="left"><span id="z_gp_d" class="z-label" z.zcls="z-label" class="z-label">:</span></td>


<td id="z_gp_d!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_gp_e!chdextr" z.coexist="true" align="left"><div id="z_gp_e" class="z-separator-hor" style="width:4pt;" z.zcls="z-separator-hor"> </div></td>


<td id="z_gp_e!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_gp_f!chdextr" z.coexist="true" align="left"><input id="z_gp_f" z.type="zul.vd.Txbox" class="z-textbox" z.zcls="z-textbox" type="password"/></td>


</tr>
</table></td></tr>


</table></div>
<div id="z_gp_g" align="center">
<span z.type="zul.btn.Button" id="z_gp_h" class="z-button" z.zcls="z-button"><table id="z_gp_h!box" cellspacing="0" cellpadding="0" border="0" class="z-button ">
<tr>
<td class="z-button-tl"></td>
<td class="z-button-tm"></td>
<td class="z-button-tr"></td>
</tr>
<tr>
<td class="z-button-cl"><button id="z_gp_h!real" class="z-button"></button></td>
<td class="z-button-cm">SignIn</td>
<td class="z-button-cr"><div></div></td>
</tr>
<tr>
<td class="z-button-bl"></td>
<td class="z-button-bm"></td>
<td class="z-button-br"></td>
</tr>
</table></span>
<span z.type="zul.btn.Button" id="z_gp_i" class="z-button" z.zcls="z-button"><table id="z_gp_i!box" cellspacing="0" cellpadding="0" border="0" class="z-button ">
<tr>
<td class="z-button-tl"></td>
<td class="z-button-tm"></td>
<td class="z-button-tr"></td>
</tr>
<tr>
<td class="z-button-cl"><button id="z_gp_i!real" class="z-button"></button></td>
<td class="z-button-cm">Clear Data</td>
<td class="z-button-cr"><div></div></td>
</tr>
<tr>
<td class="z-button-bl"></td>
<td class="z-button-bm"></td>
<td class="z-button-br"></td>
</tr>
</table></span></div>
</div>

</div>
</div>

<noscript><div class="noscript"><p>Sorry, JavaScript must be enabled.<br/>Change your browser options, then <a href="">try again</a>.</p></div></noscript>


<script type="text/javascript">
zk.addInit(function(){
zk.process('focus',"z_gp_9");
zk.process('bookmark',"home");
});
</script>


</body>
</html>
<!----><script src='/_s_/spr/playback.js'></script>


Sahi 20091130


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script src="/_s_/spr/domainfix.js"></script>
<script src='/_s_/spr/concat.js'></script>
<script src='http://sahi.example.com/_s_/dyn/SessionState/state.js'></script>;
<script src='/_s_/spr/language_pack.js'></script>
<script>
document.write("<script src='/_s_/dyn/Player_script/script.js?sahisid="+ _sahi.sid +"'></scr" + "ipt>");
</script>
<script src='/_s_/spr/playback.js'></script><html xmlns="http://www.w3.org/1999/xhtml">;
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<title>Informatic Business Solution [ver 1.6]</title>










<link rel="stylesheet" type="text/css" href="/accounting/zkau/web/8914214/zul/css/normie.css.dsp"/>


<script type="text/javascript" src="/accounting/zkau/web/8914214/js/zk/zk.js.dsp" charset="UTF-8">
</script>
<script type="text/javascript" src="/accounting/zkau/web/8914214/js/zk/lang.js.dsp" charset="UTF-8">
</script>
<script type="text/javascript">
zk_ver='3.6.3';
zk.build='09110309';
zk_procto=900;
zk_tipto=800;
zk_resndto=-1;
zk_clkflto=0;
zk.eru={};zk.erusp={};

</script>





</head>
<body>

<div class="zk" id="z_72_0" z.dtid="g72r1" style="width:100%;height:100%;" z.zidsp="page" z.au="/accounting/zkau">
<div id="z_72_1" z.type="zul.wnd2.Wnd2" z.autoz="true" class="z-window-embedded" z.zcls="z-window-embedded" z.onOK="true" z.minheight="100" z.minwidth="200">


<div class="z-window-embedded-tl"><div class="z-window-embedded-tr"></div></div>
<div class="z-window-embedded-hl"><div class="z-window-embedded-hr"><div class="z-window-embedded-hm">
<div id="z_72_1!caption" class="z-window-embedded-header">





Aplikasi inventory [ver 1.6]



</div></div></div></div>





<div id="z_72_1!cave" class=" z-window-embedded-cnt">

<div id="z_72_2" align="center">
<table id="z_72_3" z.type="zul.box.Box" class="z-vbox" z.zcls="z-vbox" z.vert="true" cellpadding="0" cellspacing="0">


<tr id="z_72_4!chdextr" z.coexist="true" valign="top"><td align="left"><table id="z_72_4" z.type="zul.box.Box" class="z-hbox" z.zcls="z-hbox" cellpadding="0" cellspacing="0">
<tr id="z_72_4!cave" valign="top">


<td id="z_72_5!chdextr" z.coexist="true" align="left"><span id="z_72_5" class="z-label" z.zcls="z-label" class="z-label">User</span></td>


<td id="z_72_5!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_72_6!chdextr" z.coexist="true" align="left"><div id="z_72_6" class="z-separator-hor" style="width:28pt;" z.zcls="z-separator-hor"> </div></td>


<td id="z_72_6!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_72_7!chdextr" z.coexist="true" align="left"><span id="z_72_7" class="z-label" z.zcls="z-label" class="z-label">:</span></td>


<td id="z_72_7!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_72_8!chdextr" z.coexist="true" align="left"><div id="z_72_8" class="z-separator-hor" style="width:4pt;" z.zcls="z-separator-hor"> </div></td>


<td id="z_72_8!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_72_9!chdextr" z.coexist="true" align="left"><input id="z_72_9" z.type="zul.vd.Txbox" class="z-textbox" z.zcls="z-textbox" type="text"/></td>


</tr>
</table></td></tr>


<tr id="z_72_4!chdextr2" class="z-vbox-sep"><td><img style="width:0;height:0"/></td></tr>


<tr id="z_72_a!chdextr" z.coexist="true" valign="top"><td align="left"><table id="z_72_a" z.type="zul.box.Box" class="z-hbox" z.zcls="z-hbox" cellpadding="0" cellspacing="0">
<tr id="z_72_a!cave" valign="top">


<td id="z_72_b!chdextr" z.coexist="true" align="left"><span id="z_72_b" class="z-label" z.zcls="z-label" class="z-label">Password</span></td>


<td id="z_72_b!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_72_c!chdextr" z.coexist="true" align="left"><div id="z_72_c" class="z-separator-hor" style="width:4pt;" z.zcls="z-separator-hor"> </div></td>


<td id="z_72_c!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_72_d!chdextr" z.coexist="true" align="left"><span id="z_72_d" class="z-label" z.zcls="z-label" class="z-label">:</span></td>


<td id="z_72_d!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_72_e!chdextr" z.coexist="true" align="left"><div id="z_72_e" class="z-separator-hor" style="width:4pt;" z.zcls="z-separator-hor"> </div></td>


<td id="z_72_e!chdextr2" class="z-hbox-sep"><img style="width:0;height:0"/></td>


<td id="z_72_f!chdextr" z.coexist="true" align="left"><input id="z_72_f" z.type="zul.vd.Txbox" class="z-textbox" z.zcls="z-textbox" type="password"/></td>


</tr>
</table></td></tr>


</table></div>
<div id="z_72_g" align="center">
<span z.type="zul.btn.Button" id="z_72_h" class="z-button" z.zcls="z-button"><table id="z_72_h!box" cellspacing="0" cellpadding="0" border="0" class="z-button ">
<tr>
<td class="z-button-tl"></td>
<td class="z-button-tm"></td>
<td class="z-button-tr"></td>
</tr>
<tr>
<td class="z-button-cl"><button id="z_72_h!real" class="z-button"></button></td>
<td class="z-button-cm">SignIn</td>
<td class="z-button-cr"><div></div></td>
</tr>
<tr>
<td class="z-button-bl"></td>
<td class="z-button-bm"></td>
<td class="z-button-br"></td>
</tr>
</table></span>
<span z.type="zul.btn.Button" id="z_72_i" class="z-button" z.zcls="z-button"><table id="z_72_i!box" cellspacing="0" cellpadding="0" border="0" class="z-button ">
<tr>
<td class="z-button-tl"></td>
<td class="z-button-tm"></td>
<td class="z-button-tr"></td>
</tr>
<tr>
<td class="z-button-cl"><button id="z_72_i!real" class="z-button"></button></td>
<td class="z-button-cm">Clear Data</td>
<td class="z-button-cr"><div></div></td>
</tr>
<tr>
<td class="z-button-bl"></td>
<td class="z-button-bm"></td>
<td class="z-button-br"></td>
</tr>
</table></span></div>
</div>

</div>
</div>

<noscript><div class="noscript"><p>Sorry, JavaScript must be enabled.<br/>Change your browser options, then <a href="">try again</a>.</p></div></noscript>


<script type="text/javascript">
zk.addInit(function(){
zk.process('focus',"z_72_9");
zk.process('bookmark',"home");
});
</script>


</body>
</html>
<!----><script src='/_s_/spr/playback.js'></script>

i have no error when i try again with sahi 20091130. If you examine my file you can find that sahi render "id" with a different name.

Regards,

Andy Susanto

Comments

  • narayannarayan Administrators
    Hi Andy,

    The only thing that has changed is that Sahi now uses gzip compression to fetch pages from the server. I am not sure if that should change the id generation behaviour. What is the error you get? Do you see an error on the page while rendering (without playback) or are your scripts failing during playback?

    Could you also specify the browser and OS please?

    Regards,
    Narayan
  • Narayan,

    that page i show is login form, when i use new release or sahi-20100208, it can not login, and it cause i failed during a playback.

    Browser IE versi 6.0.3790.3959
    OS W2k Server EE 2003 R2 SP2

    Regards,

    Andy Susanto
  • narayannarayan Administrators
    Andy,

    Verifying on IE ...
    Will get back to you.

    Regards,
    Narayan
  • narayannarayan Administrators
    Andy,

    Could you please post your script too? If not, email your script to support@sahi.co.in
    I tested on IE6 and zk and it seems to work properly.

    Could you please reconfirm this:

    1) The application is working properly through the Sahi proxy. When you navigate manually to different pages it works correctly.
    2) Play back fails for some scripts (related to login)

    Regards,
    Narayan
  • Narayan,

    are you fix my problem ?, because i can not added a password. I am always use a blank password.

    but why your older version does not have that problem.


    Regards,

    Andy Susanto
  • narayannarayan Administrators
    Andy,

    Discovered that there IS a bug in the new version of Sahi related to blur events. Am releasing a fixed build tonight or tomorrow.

    Regards,
    Narayan
  • narayannarayan Administrators
    Andy,

    You can use the 20100302 release available on SourceForge. Could you let us know if this fixes your issue?

    Regards,
    Narayan
  • Narayan,

    yes it fix my problem. Now i will use this release version


    thanks,

    Andy Susanto
This discussion has been closed.