![]() ![]() This will help register BrowserStack in the list of browsers on which you can test. One thing you need to ensure that you have Microsoft ASP.NET and Web Tools 2012.2 installed for Visual Studio 2012. Browserstack comes up with a Visual Studio integration that allows you to test your pages against different browsers within your VS console. You can specify the different combinations that you will need the screenshots for and it will collect them for you.Īn integration component for Developers: Interesting part of using Browserstack is you can use it right from the time you are writing your code. Browserstack Screenshot: Browserstack has another capability of capturing a series of screenshots of your website pages in your preferred OS/Browser/deice combo. You can use a standard framework like NUnit to run the test cases remotely.Ī typical remote Execution will look like the one below where you should be able to view the execution logs real time through Browserstack console.Ĭ. Body of the actions – Test to be run against BS VM StringAssert.Contains(“Login”, driver.Title) All you need to do here is to write your automated code ( they support Selenium) and run them in your preferred OS/Brwoser combo.Ī sample code snippet will look like this.ĭesiredCapabilities capability = DesiredCapabilities.Firefox() Ĭapability.SetCapability(“browser”, “firefox”) Ĭapability.SetCapability(“browser_version”, “26.0”) Ĭapability.SetCapability(“os”, “Windows”) Ĭapability.SetCapability(“os_version”, “7”) Ĭapability.SetCapability(“resolution”,”1024×768″) Ĭapability.SetCapability(“bug”,”true”) Ĭapability.SetCapability(“er”, “userxyz”) Ĭapability.SetCapability(“browserstack.key”, “samplekey”) Ĭapability.SetCapability(“acceptSslCerts”, “true”) ĭriver.Navigate().GoToUrl(baseURL + “/home”) Browserstack Automate: Another great feature of the tool is the ability to create automated test cases that can run against the Browserstack VMs remotely.īS subscription allows to get a user specific key through which you will establish a secure connection to the BS VMs and run tests there. All you need to do is to use that extension and establish a connection with your local dev.įig: connecting to your local environmentī. ![]() This helps to create a tunnel to the Browserstack VM with the local environment. Browserstack provides you with an extension to your Chrome or Firefox browser. What that means – you should be able to use Browserstack for your local Dev environment or the static files in your PC. There is another great feature that we all should be aware of – ability to use Browserstack in your local environment. This will spawn a session with the nearest available VM and open your website with the preferred device/OS/browser combo. A sample screen looks like the one below. You will select your OS, and then select your preferred Browser or device. Depending on the users’ choice, Browserstack will generate a connection with one of the VMs and initiate a session with the chosen Browser/OS. Browserstack Live: A typical Browserstack Live session is more about real time interaction with the VMs on the Browserstack cloud. Let’s take each one of them and talk in a bit more detail.Ī. Browserstack Screenshots : This is more relevant for static contents in the website where the users can generate screenshots across multiple OS-Browsers-device combinations at one go Browserstack Automate: With the BS Automate, users will be able to run selenium-based automated scripts in BS VMs, remotelyĬ. Browserstack live: This allows users to initiate real time interaction with the Browserstack environment.ī. The current Browserstack product family offers the following three broad service lines (The website offer a good amount of details on different products and offerings)Ī. I thought I would take some time to explain some of the concepts on cross-platform testing with examples from Browserstack.īrowserstack ( is a standard tool these days for testing your web application across multiple platforms. Hope you enjoyed the realms of wandering around the way you could potentially plan your platform testing. This is a follow-on from my previous post on Cross-platform testing.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |