Telerik Forums
Test Studio Forum
4 answers
121 views

Yo! 

I am testing a WPF application and it is crucial that I simulate front-end, user peripheral input as genuinely as possible. If I want to enter some text into some textbox, how can I do this such that it is the same as a user physically using a keyboard with the app?

I asked this question via email and was pointed to the 'Test Step Properties' section of the Test Studio documentation. I am a bit confused on how using properties like 'SimulateRealClick', 'SimulateRealTyping', and 'SimulateRealUser' can be implemented and how they are useful.

If I create a LeftClick step, is Test Studio going to perform this click using the mouse or does it invoke a click on the WPF element? 

Thanks!

Boyan Boev
Telerik team
 answered on 28 May 2015
1 answer
64 views

Hello, Telerik team!

 

I've created about 170 test. But one part of URLs was changed. For example:

was - http://rt.test.com/

is - http://qa.test.com/

 

How can I change a part of URL in all tests?

Ivaylo
Telerik team
 answered on 26 May 2015
4 answers
74 views

I see an article which describes Notification Settings (http://docs.telerik.com/teststudio/features/scheduling-test-runs/schedule-execution)

But I do not see this dialogue, and Notification Settings contains only two steps (http://screencast.com/t/ZcidqX76F), but in the article describes three steps. 

How to set up e-mail notification?

Ivaylo
Telerik team
 answered on 26 May 2015
3 answers
151 views
Hi all,
I have a Kendo grid and some buttons in a project. I have implemented tooltip via by setting content :after selector. I have to check the the displayed tooltip text's properties.. Is there any way?
Boyan Boev
Telerik team
 answered on 26 May 2015
1 answer
134 views

Hi,

We've just implemented password hashing in our company's signup form. So now I'm trying to record and make a new testcase to verify that these password fields are being indeed "hashed". What would be the way to verify that the value in these fields are indeed being displayed as hashed?

Ivaylo
Telerik team
 answered on 22 May 2015
4 answers
86 views

If using "Run List", report save in folder C:\TestsProject\Results\

If using "Schedule Test List", report save in folder C:\TestsProject\Results\TestList\*********\

Why?

 

 

Vitaliy
Top achievements
Rank 1
 answered on 22 May 2015
1 answer
88 views

If using "Run List", report save prefix "(Browser name)".

If using "Schedule Test List", report save without prefix.

Why? And it affects the "Report Page". Showing two different kinds of results, sample first "AllTest(InternetExplorer)", second "AllTest".

Cody
Telerik team
 answered on 19 May 2015
3 answers
106 views
Hi, when I record the download file process, I click Download button,  then IE open a window,I need to click "Continue to this website (not recommended)." to next step,but TestStudio couldn't record this step. Additionally, I used action 'LeftClick' on this link, but it  also didn't work when I run the script.More details you can know from the attached file. Could you please tell me how to solve this problem? Thanks.
Boyan Boev
Telerik team
 answered on 19 May 2015
3 answers
137 views

Hi,

Please help me out on this, I'm running a data driven test which encounters this error on a drop down step. I'm pretty sure that I have recorded the steps correctly. But for some reason this error keeps on popping on several iterations.

Failure Information:
~~~~~~~~~~~~~~~
ExecuteCommand failed!
InError set by the client. Client Error:
System.ApplicationException: Unexpected error thrown while setting the dropdown ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: DropDown was unable to find the item '3' in the dropdown requested. DropDown had the following values only:
 
   at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
   --- End of inner exception stack trace ---
   at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'SelectDropDown',Target:'ElementId (tagName: 'select',occurrenceIndex: '6')',Data:'V:3',ClientId:'Client_968eb438-6eb9-48bb-9876-4b8a276abfb7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.ApplicationException: Unexpected error thrown while setting the dropdown ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: DropDown was unable to find the item '3' in the dropdown requested. DropDown had the following values only:
 
   at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
   --- End of inner exception stack trace ---
   at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
System.ApplicationException: Unexpected error thrown while setting the dropdown ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: DropDown was unable to find the item '3' in the dropdown requested. DropDown had the following values only:
 
   at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
   --- End of inner exception stack trace ---
   at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'SelectDropDown',Target:'ElementId (tagName: 'select',occurrenceIndex: '6')',Data:'V:3',ClientId:'Client_968eb438-6eb9-48bb-9876-4b8a276abfb7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.ApplicationException: Unexpected error thrown while setting the dropdown ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: DropDown was unable to find the item '3' in the dropdown requested. DropDown had the following values only:
 
   at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
   --- End of inner exception stack trace ---
   at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

 I've tried the selection through Text, Values and Index already but there are iterations which are still being failed.

Birth Region field will only be available once Country of birth is selected, the same can be said on the birth district field. (see attached vid)

I have placed a script step prior to the selection step to help find the element though it has helped significantly as it has not failed most of the data driven test there are still iterations which are failing.

https://www.dropbox.com/s/7mj8sas72n0acsp/trips_05112015.swf?dl=0

Ivaylo
Telerik team
 answered on 18 May 2015
3 answers
52 views

Hello

 

 I have the following Xaml Path

 

/adornerdecorator[0]/adornerlayer[0]/backstageadorner[0]/backstage[0]/border[0]/popupcontentdecorator[0]/dockpanel[0]/border[1]/contentpresenter[name=PART_SelectedContentHost]/opendocumentview[0]/border[0]/contentpresenter[0]/grid[0]/contentcontrol[name=FindEntity]/contentpresenter[0]/findentityview[0]/border[0]/contentpresenter[0]/grid[name=FindEntity]/contentcontrol[name=Search]/contentpresenter[0]/opendocumentsearchview[0]/border[0]/contentpresenter[0]/grid[0]/contentcontrol[name=TypeFacets]/contentpresenter[0]/searchtypefacetsview[0]/border[0]/contentpresenter[0]/stackpanel[0]/listbox[name=ResultsView]/elementchrome[name=chrome]/scrollviewer[0]/grid[0]/scrollcontentpresenter[name=PART_ScrollContentPresenter]/itemspresenter[0]/stackpanel[0]/listboxitem[3]/border[name=Bd]/contentpresenter[0]/grid[0]/textblock[0]

In the attached Find-Element.png I am trying to modify the settings to Find this element with the text content  "Formulas"

So far I have come up with
\\listbox[name=ResultsView]\\scrollcontentpresenter[name=PART_ScrollContentPresenter]\\listboxitem[3]\\textblock[0]

 

I am unable to determine these two XamlTags

1) listboxitem[3]

2) textblock[0]

So how to index into an element collection on the Find Element Settings Page?

Ivaylo
Telerik team
 answered on 18 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?