Friday, 6 September 2013

Iphone testing by using Selenium webdriver

If you are looking to use WebDriver with iOS mobile Safari and are currently testing only on simulators please have a look at ios-driver or appium

Both of these projects are much better implementations of WebDriver for iOS, the only reason it is not a wholesale replacement now is that they can not run on real devices for mobile safari right now.


https://code.google.com/p/selenium/wiki/IPhoneDriver

How to Schedule times and days in JENKINS to run scripts

You can get more details here

http://stackoverflow.com/questions/12472645/how-to-schedule-jobs-in-jenkins

Sunday, 1 September 2013

How to deploy our java project into Azure server by windows based

Configuring a custom domain name for a Windows Azure cloud service

When you create an application in Windows Azure, Windows Azure provides a friendly subdomain on the cloudapp.net domain so your users can access your application on a URL like http://<myapp>.cloudapp.net. However, you can also expose your application on your own domain name, such as contoso.com.

You can get more info on this link

http://www.windowsazure.com/en-us/develop/net/common-tasks/custom-dns/

Wednesday, 28 August 2013

how to handle pop up authentication message box for Chrome, IE and Firefox

Some websites need to pass pop up authentication Required message boxes.

To enter user id and password automatically we can handle in many ways.

1) By adding user id and password before start of url
http://usename:password@websitename.com
2) By using Auto it tool
http://stackoverflow.com/questions/14621212/autoit-code-for-handling-windows-authentication-pop-up-using-selenium-webdriver

Working example

http://learnwebdriver.blogspot.co.uk/p/autoit.html

3) By using Sikuli tool.

Sometimes authentication is necessary before a test case can be executed. While HtmlUnit based tests can easily enter and confirm authentication requests, most browser based tests, cannot workaround the dialog. This is a browser security measure to prevent automated data capture and/or data entering. WebDriver for Firefox delivers a solution for that problem, but IE and Chrome rely on a manual interaction with the browser before the test automation can run.
 Working code example is available here
http://blog.xceptance.com/2012/02/25/handle-authentication-during-webdriver-testing/

http://sikuli.org

How to use Sikuli in Selenium or How to test images by using Selenium

SikuliFirefoxDriver

SikuliFirefoxDriver extends Selenium's FirefoxDriver by adding Sikuli's image search capability. It is useful for automating interactions with highly visual interfaces such as Google Maps or logos for any images on your website.

For more details with code example please follow on this link.

http://code.google.com/p/sikuli-api/wiki/SikuliWebDriver

http://stackoverflow.com/questions/17283091/sikuli-selenium-testing-on-jenkins-allow-the-browser-to-be-launched-in-the-for

http://www.uvnc.com/downloads/ultravnc.html

If you are using Maven build tool.. Please use this dependency to download jar files

<dependency>
        <groupId>org.sikuli</groupId>
        <artifactId>sikuli-webdriver</artifactId>
        <version>1.0.1</version>
</dependency>
 
http://sikuli.org 
 
For Selenium Grid
 
http://autumnator.wordpress.com/2011/12/22/autoit-sikuli-and-other-tools-with-selenium-grid/