Posts

Showing posts from 2015

How to Handle an Upload Dialog via Telerik test studio

How to Handle an Upload Dialog via  Telerik Testing Framework Handling an upload dialog in test automation is quite tricky since the dialog is generated from the browser not the application it self, In Telerik you can record this function but you cannot see the inline code of the function Actually its pretty easy, Here is the code to upload a picture from your telerik automation suite via a upload dialog eg: picture is in C drive C:\\mypicture.jpg Steps 1. Create a variable for the uploaded picture var x = new ArtOfTest.WebAii.Win32.Dialogs.FileUploadDialog (ActiveBrowser,"C:\\mypicture.jpg", DialogButton.OPEN); 2. Initiate the dialog Manager.DialogMonitor.Start(); 3. Close the dialog Manager.DialogMonitor.AddDialog(x); 4. Create an object for the browse button HtmlInputFile choose = ActiveBrowser.Find.ById<HtmlInputFile>("Id of the browse button"); choose.Click(); 5. wait till the upload dialog ...

Handing iframes with Telerik Test studio

Handing iframes with T Telerik Testing Framework Adding content or data to ifrmas is not that hard when using selenium or CoadedUI. All you have to provide is the Xpath of the iframe, but in Telerik test studio its kinda tricky, since it doesn't work with the simple Xpath.  You always have to record that step and the step fails every time you convert it to a C# code. SO following is how you handle a iframe in Telerik test studio with C# code Its advised to use Visual studio when codding with Telerik test studio 1. First create a object/ variable for iframe                                                   ArtOfTest.WebAii.Core.Browser t1_frame = ActiveBrowser.Frames[0]; 2. Locate the text editor's Xpath inside the iframe to a another object Element TextEditor = t1_frame.Find.ByXPath("/html/body"); 3. Use Set...

Why Test Automation

Image
Why Test Automation In software industry nowadays, it is a challenge for any company to continuously maintain and improve the quality and efficiency of software systems development. In many software projects, testing is not happening to a sufficient level due to time or cost constraints. This leads to lack of product quality, followed by customer dissatisfaction and it ultimately leads to increase in overall quality costs. The main reasons for these added costs are primarily due to: Issues in the test strategy effort of test case generation is not adequately estimated development delays always cost testing time subsequent test maintenance cycles Test automation can improve many areas in a software product life cycle. In addition to the effectiveness of testing, even the accuracy will be higher when comparing with a manual tester. Therefore, by introducing automation the manual testers can focus more on business scenarios and let the ...