Telerik Forums
Test Studio Forum
3 answers
171 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
73 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
3 answers
339 views
Good morning,
I must test a site that used ad iFrame... so I don't know how test the redirect of the page.

Is there a guide or hint fot thi ?

Bye,
Marco
Boyan Boev
Telerik team
 answered on 18 May 2015
1 answer
237 views

I'm curious if it's possible to have a web test with a step that closes the browser but then is able to continue running the test in the next step.

I've tried using "Manager.ActiveBrowser.Close();" but that closes the browser and then ends the test. The next step that I have reopens the browser and navigates to the desired page but it never seems to go onto the next step once the browser closes. Is there a way to use a similar step that would close or restart the browser without ending the test?

Cody
Telerik team
 answered on 16 May 2015
1 answer
64 views

Hi,

I have downloaded a trial version and i have been trying to get my hands on the test studio. I am having issues capturing recordings due to improper placement of the Grid, text fields etc while highlighting. The Context menu appears very far as the tester cannot reach it and it disappear. The context menu also keeps blinking and is very irritating.

 Please see to the file attached.

 System Specs:

Windows 7
Intel Core 2 Duo
Ram: 4 GB
32 bit operating system
Resolution : 1400 x 1050

Cody
Telerik team
 answered on 16 May 2015
2 answers
148 views
I am attempting to automate our API testing.  I have attempted to use Fiddler, RestClient, and cURL.  So far I have been unsuccessful.  Has anyone else tried to automated API testing with any of these tools or any other tools with success?

Thanks
Timothy
Top achievements
Rank 2
 answered on 15 May 2015
17 answers
650 views
Hi,

I have a functionnal test where a user login to my app and navigate through it. Then i use this WebTest to capture a load test.
In the POST request, I can easily configure login/password with a data bind but how can I use the generated csrf token from the previous page into this POST request?

In my functionnal test, I already extracted the value from the hidden input and hoped I could use it later on in the load test.

Actually I'm not sure i can really do it this way. If it's the case, how can I solve this problem?

(I'm sure it's a common problem, but I couldn't find an answer yet.)
Cody
Telerik team
 answered on 15 May 2015
13 answers
369 views
Hi

I am testing a Wpf application. I would like to configure the application path while running from command prompt. This needs to override the one that give in the tool while recording test steps.
I have tried including the following in the app.config

<configSections>
    <section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler, ArtOfTest.WebAii" />
    <section name="WebAii.Settings.Web" type="ArtOfTest.WebAii.Core.WebSettingsConfigSectionHandler, ArtOfTest.WebAii" />
<section name="WebAii.Settings.Wpf" type="ArtOfTest.WebAii.Core.Settings.WpfSettings, ArtOfTest.WebAii" />
  </configSections>
 
<WebAii.Settings.Wpf "DefaultWPFApplication":"<path.exe">
    />


I have also tried creating a Settings.xml. But neither work. Can you provide the correct method & syntax? Thanks!
Cody
Telerik team
 answered on 15 May 2015
1 answer
184 views

Hi,

In Load Testing I Edited the json content(Serial number-Primary Key) value in the Captured Traffic POST Element.

After I run with the Edited value, the Database gets affected. The respective data stored in the database(Oracle) Table.

Next i have tried with Data driven (using EXCEL Sheet. I am not getting any error. But there was no affect in Database.Values not stored in the Database Table.

I am not sure whether the Excel Data column value that I was Replaced in the json script correct format.

So tell me how to replace the content value with the Excel column value.

Herewith I have attached you the reference screenshots.

Thanks
Saravanan

Cody
Telerik team
 answered on 15 May 2015
1 answer
118 views

<html>
   <head></head>
   <body>
      <iframe id="casesFrame" width="99%" height="418" frameborder="0" src="../cases/main_init" name="casesFrame" style="">
         <html class=" ext-strict x-viewport">
            <head></head>
            <body id="ext-gen3" class=" ext-gecko ext-gecko3 x-border-layout-ct">
               <ul id="ext-gen37" class="x-tree-root-ct x-tree-arrows">
                  <li class="x-tree-node">
                     <a class="x-tree-node-anchor" tabindex="1" href="" hidefocus="on">
                        <span unselectable="on">New case</span>
                     </a>

                  </li>
               </ul>
            </body>
         </html>
      </iframe>
   </body>
</html>

 

I have the following structure in my page, but I get error while performing an event "Click" link "New Case" this is iframe.
I am using the code following in "Test Studio":

Browser casesFrame = Manager.ActiveBrowser.Frames.ById ("casesFrame");
HtmlAnchor NewCase = casesFrame.Find.ByExpression <HtmlAnchor> ("InnerText = ~ New case", "tagname = a");
Assert.IsNotNull (NewCase);
newCase.Click (); //Does not perform the event ​

Cody
Telerik team
 answered on 14 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?