Posts

Showing posts with the label #BrowserCapture #MSTest #VSTest

Drag and Drop with Telerik Testing Framework

Posting a blog after a long time, so I'm not gonna add a huge description here. Most of the user friendly web applications support drag and drop commands/actions and even though lot of test automation IDEs support drag and drop its dosent work most of the time, Trust me I have tired. So on today's post we will discuss how to perform this simple task using Telerik Test studio Step 1 First you have to identify which are the two elements you're going to use for this operation Eg: I'm using 2 HTML div Elements ids: dragitem, droptiem Since you're using a code first method first you have to identify the 2 elements in the web browser HtmlDiv Dragitemspan = ActiveBrowser.Find.ById("dragitem").As<HtmlDiv>(); HtmlDiv dropitemspan= myManager.ActiveBrowser.Find.ById("dropitem").As<HtmlDiv>(); This is the vary basic method of identifying an element in Telerik test studio, you could use page object class or a pag...

How to take screenshots of a failed test with Telerik Testing Framework

Image
This article is about taking a screenshot with Telerik Test Studio Free Framework. If you want to know how to write tests with Telerik Test Studio Free Framework refer my Previous posts Lets Start, First you need a test clean up method, If you're using a VS test Project given from Telerik testing framework its already on your VS test template like in the below screenshot [Figure 1], else you can create a new test method. Figure 1 If you're creating a new Cleanup test method, follow the below syntax // Use TestCleanup to run code after each test has run [TestCleanup()] public void MyTestCleanup() { // // Place any additional cleanup here // #region WebAii CleanUp // Shuts down WebAii manager and closes all browsers currently running // after each test. This call is ignored if recycleBrowser is set this.CleanUp(); #endregion } This is copied from the Telerik Fre...