Telerik Forums
Test Studio Forum
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
329 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
235 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
59 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
144 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
636 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
360 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
182 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
114 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
5 answers
235 views
Hi,

I was trying out the record and playback functionality. I was recording elements in an iFrame within a modal popup.
The recording went successfully, but during the playback the iFrame gets skipped. When I checked the recordings I saw the iFrame recorded as an element, but the iFrame itself didn't contain any elements visible in the explorer. I tried calling RefreshAllDomTrees(), but it still didn't load the elements within that iFrame.

I'm executing these tests in a Dynamics CRM environment. 
I was hoping someone here could help me out. 

Kind regards,
Shuji
Ivaylo
Telerik team
 answered on 14 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
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?