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.

Android Browser Test ?

sanmaniksanmanik Members
edited November -1 in Sahi - Open Source
Hello there,

I was trying to test this with the android web-kit browser...and the proxy does not seem to work. Can I get pointers to make it work ?

I am willing to contribute testing this for android web-kit browser. Please let me know how to do this ?

Thanks and Regards,
Santosh

Comments

  • narayannarayan Administrators
    Awesome Santosh! Thanks for the interest to contribute.
    Are you working on the SDK or on the phone? How are you configuring the proxy?

    Regards,
    Narayan
  • Hi Narayan -

    Thank you for your prompt response.

    Currently I an testing this with Android Emulator on Windows as well as Linux. The emulator is running in the proxy mode with the parameter <-http-proxy 10.30.10.85:4444>.

    SAHI proxy is running on the machine running windows XP and is configured to listen at 4444. I am able to setup the proxy for IE and Firefox and it's working perfectly, I am able to get the SAHI console and record / play the test scenario.

    On Android Emulator browser - when used with SAHI - I get the network error. But with other proxy software in the same setup, I am able to browse on emulator browser.

    Please advise on the configuration for android so that I can continue further.

    Thanks and Regards,
    Santosh
  • Hi All -

    any from the forum here, will be great if I get some pointers here.

    Warm Regards,
    santosh
  • sanmaniksanmanik Members
    Hello Narayan -

    Thank you for responding, the links that you shared talk about setting the proxy for the android debugger. I am able to set the emulator in the proxy mode and the request indeed is landing on the proxy, in this case - SAHI. Post that - the response that SAHI generates is different and hence the http responses are not generated further. I have seen using the wireshark - that the SAHI proxy is receiving that initial GET request - but the response generated is not same as it is generated for the normal browser and hence - the browser attempts a retry before giving it up.

    If required - I can post those wire-shark captures for your analysis and you could guide me for further actions. I an not comfortable with the SAHI code - and in general the SAHI instrumentation with respect to the proxy injection methodologies. I shall dig in further and keep u posted but if have some other directions / comments - please provide them so that I can investigate in that direction.

    Regards,
    Santosh
  • narayannarayan Administrators
    Hi Santosh,

    You can email the reports at narayan@sahi.co.in, and we should be able to deduce from there. Could you also let me know how you set up the proxy on android?

    Regards,
    Narayan
  • sanmaniksanmanik Members
    Hello Narayan , team -

    I had sent the wireshark logs that I captured for Android Browser with SAHI - any inputs for me in this regards ?

    thanks and regards,
    Santosh
Sign In or Register to comment.