Telerik Forums
Test Studio Forum
5 answers
101 views
Hi
I´m using Test studio with Visual Studio 2010 and exporting the Storyboard to html.  Is it possible to modifie export templa with my companies logo and custom text?

cheers
Eyjolfur Bjarnason
Boyan Boev
Telerik team
 answered on 05 Nov 2014
3 answers
294 views
Hi,

I have 2 sites of similar page structure. Here i need to navigate to another page from home by clicking on "first" link (menu option) from left-pane. I am not sure of the name of the link or it's href value. But i have to click on the first link from left-navigation-pane. The link in first site might be completely different from second site. Can i locate this element by using it's 'UL' index in the left pane ?

For the 1st site's element XPath was - /html[1]/body[1]/form[1]/div[2]/div[1]/ul[1]/li[2]/a[1]
For the 2nd site's element XPath was - /html[1]/body[1]/form[1]/div[3]/div[4]/div[1]/div[2]/div[1]/ul[1]/li[2]/a[1]
So i have tried element finding logic as 'XPath' - 'StartsWith' - /html[1]/body[1]/form[1] & 'XPath' - 'EndsWith' - /div[1]/ul[1]/li[2]/a[1]
But the telerik is unable to locate the element as there are other links at the  bottom of the page matching with the same above logic.


Could somebody please help me with this ? I should be able to run the same script/steps in 2 sites.
Thanks in advance

Boyan Boev
Telerik team
 answered on 05 Nov 2014
14 answers
291 views
Hello,

I have the following coded step that identifies a specific image I'm looking for and then clicks on it.  After clicking, I need to handle a dialog box, but I don't believe there is a way to call a regular step from a coded step from what I've seen so far.  So I'm trying to find a way to use this coded step to iteratively find and click on each image, break out to a regular step to handle the dialog, and then repeat the process until all of the images I'm looking for have been clicked.

I set an extracted value of "Repeat" to either "True" or "False" within the coded step.  Is there a way to execute a regular step logical loop based on this value since it's independent of any target on the screen?

Thanks for your help!
Tori

// Find the "Void" (Delete) image gif and click on it.
   
ReadOnlyCollection<HtmlImage> VoidImages = ActiveBrowser.Find.AllByAttributes<HtmlImage>("src=~delete.gif");

if(VoidImages.Count == 0)
    Console.Out.WriteLine("Void Image Not Found. . .continuing. ");

int Count = 0;

foreach(HtmlImage i in VoidImages)
    {  
        Count = Count + 1;
        Console.Out.WriteLine("Image Count = " + Count);
    
        if(i.IsVisible())
            {
            i.ScrollToVisible(ScrollToVisibleType.ElementTopAtWindowTop);
            Log.WriteLine("Visible Void Image Found:  " + Count + " " + i.Src + " clicking! ");
            Console.Out.WriteLine("Visible Void Image Found:  " + Count + " " + i.Src + " clicking! ");
            HtmlImage VisibleImage = i;
                               
            if(Count == VoidImages.Count)
                {
                SetExtractedValue("Repeat", "False");
                Console.Out.WriteLine("Last image, stop looping.");
                Log.WriteLine("Last image, stop looping.");
                }
            else
                {
                SetExtractedValue("Repeat", "True");
                Console.Out.WriteLine("More images remaining, keep looping.");
                Log.WriteLine("More images remaining, keep looping.");    
                }
            VisibleImage.Click();
            break;    
            }    
  }








Cody
Telerik team
 answered on 04 Nov 2014
1 answer
58 views
Hi,
the last few days my remote tests have been executing normally (I can watch them on the scheduling machine) however when I view the results on my client machine it shows that no tests in the test list have been run. Does something on the execution machine need clearing out ?


Thanks TOm.

client version: 2013.1.806.0
Ivaylo
Telerik team
 answered on 04 Nov 2014
3 answers
99 views
How do you do a verification step at the end of a login test, if the login link has the person's name instead of the word Login?

thanks

Wade
Ivaylo
Telerik team
 answered on 03 Nov 2014
3 answers
160 views
Good Morning,

I have been having an issue connecting my recorder to a modal popup window. I have attempted to read through the forums, and unable to connect or get the proper step to connect to the pop-p dialog window.

I have read this article: Modal Telerik

I am attempting to record the Planning Unit dialog window which appears when the Edit Planning Members is selected.

I do not see the "Modal Popup" in the properties window for my step.
If possible how can I add it in or add it in as a dialog window..

Thanks again for your help.
Ivaylo
Telerik team
 answered on 03 Nov 2014
2 answers
145 views
 Click 'Div'

The highlighted area is combo box created using ext.net, when we recording in test studio it find as a click 'div', but after recording when execute test case its click event execute outside.

 Click 'ExtGen5728Div'

This id is generated in recording time, after execute this test case its id has been changed. because id is changed every time when we insert new row.


 Click 'x8LegalListItem'
Cody
Telerik team
 answered on 02 Nov 2014
1 answer
62 views
Hi,

I am using Test Studio to write tests for a WPF client app that communicates with a server.  There is a lot of delay between steps due to server communication, so I'm trying to get rid of all arbitrary sleeps and key off other UI elements to synchronize my test steps.  I'm running into a lot of issues with context menus.  Here is my current approach:

1) Find the element by XamlFindExpression that I want to right-click for a context menu.
2) hover over the element with User.HoverOver()
3) Sleep 200 ms
4) issue a User.Click(MouseClickType.RightClick)
5) refresh the visual trees of my window with win.RefreshVisualTrees()
6) try to find the context menu item by name: win.Find.ByExpression(new XamlFindExpression("XamlTag=MenuItem", "Name=menuItemName");

This works "some" of the time.  However, I have my find strategy set to AlwaysWaitForElementsVisible and timeout set to 30000 ms.  However, when this fails, it returns failure right away, it doesn't wait for the menu item to show up.

Is there a better way to do this?  What am I doing wrong?

Thanks!
Danielle
Cody
Telerik team
 answered on 31 Oct 2014
5 answers
131 views
Dear Telerik,

I am trying to navigate to a different page, but before I can do this, a dialog appears (the IE "leave this page" or "stay on this page" dialog).
I would like to leave the page and go to an other URL.

I already tried several things; using the onbeforeunload handler and by using invoked keypresses. But I cannot get this to work on my test lists while running remotely.

Onbeforeunload:
OnBeforeUnloadDialog dialog = OnBeforeUnloadDialog.CreateOnBeforeUnloadDialog(ActiveBrowser, DialogButton.OK);
Manager.DialogMonitor.AddDialog(dialog);
ActiveBrowser.NavigateTo("/ExterneAanroep.aspx?pagina=wachtwoord-activeren", true);
dialog.WaitUntilHandled(10000);
I also tried to use this.Manager.Settings.UnexpectedDialogAction = UnexpectedDialogAction.HandleAndContinue;, because my testlist needs the global setting set at "Do not handle", but still no success.

Keypress:
ActiveBrowser.NavigateTo("/ExterneAanroep.aspx?pagina=wachtwoord-activeren", true);
Manager.Desktop.KeyBoard.KeyPress(Keys.Enter, 200);
And added the reference system.windows.forms to my project and to the cs file.

What am I missing here?

Regards,
Reinout
Boyan Boev
Telerik team
 answered on 30 Oct 2014
3 answers
167 views
Does Test Studio have a way to select failed tests and run them again?  In NUnit you can automatically select the failed tests and rerun them.  I don't see a way to do something similar in Test Studio.
Boyan Boev
Telerik team
 answered on 30 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?