Telerik Forums
Test Studio Forum
3 answers
64 views
Hi Telerik team

We recently purchased a license for Telerik, after which I
began organising the files I had created during the trial period, to prepare
for subsequent testing.

This means I've been moving some files around, and now I’ve experienced the same issue twice, namely that after
moving a number tests from one folder to another, one of the elements recorded
in TS disappears completely, thus breaking a number completed and functioning
tests. Also in both separate cases it has been the exact same element that went
missing ('Item1Textbox'  -  I've attached an example from the error log). 

I can understand that moving files around could break some
functionality, and that I might have to refresh some steps in TS, but I don’t
understand how a specific recorded element can spontaneously disappear? 

We’ve found that re-recording the element once in a basic
test will repair the broken steps, but could you help guide me to avoid this
going forward? Could it be a bug in TS that needs further looking into?

Thank you,
Jakob

Boyan Boev
Telerik team
 answered on 17 Sep 2014
1 answer
45 views
Hi Support,

In the time of developing Hybrid Mobile App in KendoUI, is there any test tool that I can use for unit testing, integration testing and so on?
If not, is there any testing library or tool that you can recommend?

Thanks & regards,
Zaw Min Tun
Cody
Telerik team
 answered on 17 Sep 2014
5 answers
173 views
Hello Everybody

I am testing a WPF App. My App is started from a ClickOnce shortcut. Here are the steps:

1 - Start Test Studio and create a WPF test

2 - Add a Code Step in my WPF test

3 - Using the snippets in http://docs.telerik.com/teststudio/user-guide/code-samples/wpf/connect-to-running-wpf-app.aspx to connet to my running WPF App:

// close the mock app
ActiveApplication.Quit();
 
string appPath = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Programs), @"\MyWPFApp\DEVELOPMENT\MyWPFApp.appref-ms");
 
System.Diagnostics.Process.Start(appPath);
 
var runningApp = System.Diagnostics.Process.GetProcesses().Where(p => p.ProcessName == "MyAPP");
             
while (runningApp.Count() == 0)
 {
     runningApp = System.Diagnostics.Process.GetProcesses().Where(p => p.ProcessName == "MyAPP");
}
 
 Manager.ConnectToApplication(runningApp.FirstOrDefault());
 
while(!Manager.ActiveApplication.Process.WaitForInputIdle())
 
Manager.ActiveApplication.MainWindow.RefreshVisualTrees();
 
ActiveApplication.WaitForWindow("My App");

All these steps work fine but how can i record my steps in Test Studio Standalone after the code step.

Thanks
Hicham
Ivaylo
Telerik team
 answered on 16 Sep 2014
3 answers
67 views
During recording, I login, then click on a tab (from a Telerik tabstrip). The .tstest file shows click TimeSheetLink. But when I play back the recording, it hangs trying to locate that link, even though I can clearly see it in the browser. The html for the link looks like this: <a class="k-link" href="#/Timesheets">Timesheets</a>. I get the same result if I put a verify exists/visible, etc.

Is there a trick to clicking anchors? It seems to record the step properly.
Boyan Boev
Telerik team
 answered on 15 Sep 2014
1 answer
184 views
Hi there, I'm having a problem with the scroll to top function.  The app i'm testing has a static field at the top, and when running a test the scroll to top functionality is placing the field that I am trying to have it click behind the static field.  This is making it click on the static field instead and is not allowing it to access what i need it to.

I've found I can go in the code behind the step and change it to scroll bottom to make it work.

Is there a way to default all of the steps to use scroll bottom instead?
Or is there possibly a way to prevent the scrolling altogether when it isn't needed?
Cody
Telerik team
 answered on 10 Sep 2014
5 answers
132 views
Hello,

I have this peace of html code. See below. Now what I want to is to check if the first product (class="product-item is-full") contains "Verzekeruzelf.nl" if so click the second product the "Verder"anchor. 

I am trying all kinds of things but nothing seems to work for me. See also my C# code.

<div class="product-items" id="product-items">               
        <div class="product-item is-full">
            <div class="product-item-header">
                <span class="icon-prijs-kwaliteit">
                    <span class="inner-circle">1</span>
                </span>
                <div class="row-fluid row-fluid-centered">
                    <div class="grid2of3">
                        <div class="product-item-company">Verzekeruzelf.nl</div>
                    </div>                  
                </div>
            </div>
 
            <div class="product-item-body s-visible-block">
                <div class="row-fluid row-fluid-centered">
                    <div class="grid2of3">
                        <span class="price-quality-label">Prijs-kwaliteit</span>
                        <div class="price-quality-score">100</div>
                    </div>                   
                </div>              
            </div>
 
            <div class="product-item-footer">
                <div class="product-item-price"><sub>per maand: </sub>30,<sup>21</sup></div>
                <a href="/autoverzekering/details/overzicht/50162" class="btn-purple">Verder</a>
            </div>
        </div>
 
        <div class="product-item is-full">
            <div class="product-item-header">
                <span class="icon-prijs-kwaliteit">
                    <span class="inner-circle">2</span>
                </span>              
                <div class="row-fluid row-fluid-centered">
                    <div class="grid2of3">
                        <div class="product-item-company">Allsecur</div>
                    </div>                  
                </div>
            </div>
 
            <div class="product-item-body s-visible-block">
                <div class="row-fluid row-fluid-centered">
                    <div class="grid2of3">
                        <span class="price-quality-label">Prijs-kwaliteit</span>
                        <div class="price-quality-score">92</div>
                    </div>                  
                </div>              
            </div>
 
            <div class="product-item-footer">
                <div class="product-item-price"><sub>per maand: </sub>30,<sup>48</sup></div>
                <a href="/autoverzekering/details/overzicht/50869" class="btn-purple">Verder</a>
            </div>
        </div>
    </div>

I get the message:

LOG: -------------- allProducts ELEMENT FOUND: HtmlDiv:<DIV class=product-item-header>
LOG: -------------- productOne ELEMENT NOT FOUND  --------------

ActiveBrowser.RefreshDomTree();
  
//HtmlDiv productOne = Find.ByExpression<HtmlDiv>("class=product-item-header"); //Grab the first company
  
IList<HtmlDiv> allProducts = Find.AllByAttributes<HtmlDiv>("class=product-item-header");
 
if(allProducts != null) {
     
    Log.WriteLine("-------------- allProducts ELEMENT FOUND: " + allProducts[0].ToString());
     
    //HtmlDiv NameCompanyOne = top3[0].Find.ByNodeIndexPath<HtmlDiv>("1/0/0");
    //Log.WriteLine("-------------- VERZEKER ONE NAME: " + NameCompanyOne.InnerText);
     
    HtmlDiv productOne = allProducts[0].Find.ByAttributes<HtmlDiv>("class=product-item-company");
     
    if( productOne != null) {
        if ( productOne.InnerText.Contains("Verzekeruzelf.nl") ) { //Check if it's Verzekeruzelf.nl  
            Log.WriteLine("-------------- VERZEKER U ZELF FOUND  --------------");
         
            //First company is Verzekeruzelf.nl           
            HtmlAnchor anchorCompanyTwo = allProducts[1].Find.ByExpression<HtmlAnchor>("value=Verder");   //Grab Verder link
            anchorCompanyTwo.Click();   //Click it
        } else {   
            Log.WriteLine("-------------- NO VERZEKER U ZELF FOUND  --------------");
             
            //First company not is Verzekeruzelf.nl
            HtmlAnchor anchorCompanyTwo = allProducts[0].Find.ByExpression<HtmlAnchor>("value=Verder");   //Grab Verder link
            anchorCompanyTwo.Click();   //Click it 
        }  
    } else {
        Log.WriteLine("-------------- productOne ELEMENT NOT FOUND  --------------");
    }
} else {
    Log.WriteLine("-------------- allProducts ELEMENT NOT FOUND  --------------");
}

Hope someone can help me out?

Thanks,
Bjorn
Ivaylo
Telerik team
 answered on 10 Sep 2014
3 answers
53 views
I am working with two applications, App1 that is run under any browser, and App2 that is run under Internet Explorer only.  My testing generally involves entering changes through App1 and checking the results in App2.  The scenario then for my test lists is test App1 under any browser, followed by testing App2 under IE.  Is there a way within one test list to run one test in a selected browser and then the subsequent test in Internet Explorer only?  I have tried setting the browser-type property on the second test but apparently, the browser selected at the beginning of the run overrides that property.  I have also tried setting the RunsAgainst property on the second test, and then running it as a child to the first test.  No success.  Is there a way to do what I need to do?

Your help is much appreciated.  Thanks.
Cody
Telerik team
 answered on 09 Sep 2014
1 answer
58 views
Our development team is about to do a re-write of a Silverlight application which has a lot of drag and drop functionality.
Before they get started I would like to give them guidance as to how they should identify objects consistently to make it easy for the test studio tool to test drag and drop functionality.

My main concern is when there are multiple drag-able objects that could be dropped in a number of similar objects on the screen.

I want to make sure Test Studio is going to be able to identify7 the correct object to drag and the correct destination to drop the object.

Example.
5 Person icons could be dropped in any seat in 2 separate vehicles in any of the seats of those 2 vehicles.
Boyan Boev
Telerik team
 answered on 09 Sep 2014
1 answer
57 views
Hi, i'm assigned with a task to select a web automation tool
for our company and currently evaluating Telerik Test Studio.

I recorded a web test using test studio and during the recording
there was a scenario where i had to select an option from a drop 
down menu. While recording, I was able to select any option within 
that menu and proceed with the recording.
But the problem came up when running the recoreded test. The 
option i selected while recording was not selected again when i ran the 
test.

Whly is this happening?

I was trying to record the usual activity flow of an usecase in our
application and encountered this problem.
  
Ivaylo
Telerik team
 answered on 09 Sep 2014
1 answer
63 views
Hi Telerik,

Scenarios:
1. Get the Count of the Combo List
2. Random Selection of values from the Combo list and Specified Selection
3. Load the Values From Excel to combo
4. set the Specified row for the Field
5. Get which row is running Current

 My application where we are using the metronic, kendo Tool to develop the Application, Here I am Unable to do the Above mentioned Scenarios,
Can any one help the Coding in C#
Here I have Attached the Screen short of my Application
Ivaylo
Telerik team
 answered on 09 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?