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.

try to automate web on blackeberry simulator

john_qajohn_qa Members
edited November -1 in Sahi - Open Source
Hi,

I am very interested in Sahi in order to automate mobile web sites. For that I've started with Android which goes ok, like in the tutorial, and now I would like to do the same for blackberry simulator.

First I have set the port and proxy for the simulator to localhost:9999, then I configured Sahi like this:
<browserType>
<name>blackberry</name>
<displayName>Blackberry</displayName>
<icon>chrome.png</icon>
<path>D:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 7.0.0\7.0.0.410 (9930)\fledge.exe</path>
<options>/handheld=9930 /session=9930 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:9930.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A /app-param=NoTutorial /app-param=MdsIP=127.0.0.1 /app-param=url:</options>
<processName>fledge.exe</processName>
<useSystemProxy>false</useSystemProxy>
<capacity>1</capacity>
</browserType>

Now when I try to start the Blackberry from Sahi Dashboard(or try to execute a test) I have this error:
"Unable to find the requested server." on sahi.example.com/_s_/dyn.......

If I put localhost:9999, the localhost:9999/_s_/spr/launch.htm site is opened properly.


Can you give me a hand with this? Is there something I'm missing?

OS Name: Windows XP and Windows 7
Browser Name and version: Blackberry
Sahi Build: V3.5 2011-07-19

Thank you,
John

Comments

  • Finally I've managed to configure the Blackberry emulator and I am able to load the page sahi.example.com/_s_/dyn....... but afterwards the script failes on browser.navigateTo with this error:
    error:Playback session not started. Verify that proxy is set on the browser.
        at net.sf.sahi.client.Browser.executeStep(Browser.java:223)
        at net.sf.sahi.client.Browser.navigateTo(Browser.java:175)
        at net.sf.sahi.client.Browser.navigateTo(Browser.java:164)
    

    Any sugestions?
  • Hi John_qa,

    You will have to set the browser to use Sahi's proxy.

    Kindly have a look at: http://sahi.co.in/w/configure-the-browser

    Regards
    Sumitra
  • john_qajohn_qa Members
    edited January 2012
    In my opinion the browser is set to use Sahi's proxy. How can I check that is really using it?

    Your url doesn't help much since I'm trying to automate the browser inside a Blackberry simulator.

    Thanks
  • narayannarayan Administrators
    Hi John,
    I am installing the emulator on my machine. Will let you know after I play around with it a bit in the next couple of days.
    Regards,
    Narayan
  • john_qajohn_qa Members
    edited January 2012
    Hi,

    Thank for your interest.

    Let me tell you something about the architecture of this blackberry emulator, it might help.

    So there is the blackberry emulator software which in order to have a network with proxy needs to communicate with a MDS server. In this MDS server I can set the proxy.

    Now I'm thinking that maybe sahi tries to communicate with this MDS server and not with the emulator itself, and because of that the browser navigateTo command is failing. Maybe sahi considers as browser the MDS server.

    Thank you and regards,
    John
  • Any updates on this?
Sign In or Register to comment.