Telerik Forums
Test Studio Forum
1 answer
89 views

Hi ,

I have an element with following properties

Name= TestMenuMnActiveListItem  (element added by highlighting and using option Add to Elements)     

ControlType = Telerik.TestingFrameworks.Controls.KendoUI.KendoMenuite

Expression : "data-role=menu,|,TagName=li,InnerText=^Sales,class=k-item k-state-default rootMenuItem"

When I run the recorded step  'Click  TestMenuMnActiveListItem' it works ok. 

But I want to find this element through code and then click it so as to be able to make a reusable test for multiple menu items.

I used the below code but it doesn't recognize the element. Can you please help me in fixing this.

Dim MenuExpr as New HtmlFindExpression("data-role=menu","|","TagName=li","InnerText=^Sales","class=k-item k-state-default rootMenuItem")                                         
  
Dim MenuItem as KendoMenuItem = Pages.HttpsWwwRambase1.Find.ByExpression(of KendoMenuItem)(MenuExpr )
  
MenuItem .Click

 

Thanks,

Sprithi

 

Ivaylo
Telerik team
 answered on 18 Mar 2016
3 answers
127 views
Is there a way to automatically pubilsh (or share) performance results of scheduled test lists? Auto-email? Dump in a file in a shared location? Publish to TFS?

I've seen where and how I can do this with simple pass/fail results, but I'm concerned with the performance metrics of scheduled performance test runs that I setup.
Elena
Telerik team
 answered on 16 Mar 2016
1 answer
82 views

Hi, i have a question. I want to create a test that is "dynamic" meaning, when the test has finished to run, it will go back to the beginning take another url, and will run again on the new url. what i need is a loop test that will receive different parameters in each run, but the test steps are the same.

Is that possible in test studio?

Thanks for any help.

Boyan Boev
Telerik team
 answered on 16 Mar 2016
2 answers
145 views

Hello,

I have a problem with extracting a value form Kendo Grid.
The table is with three columns and I want to extract the text in second column of the first row. The second column cointains a full name of person.
Every time I run the test the full name in second column is different and I want to get this full name and use it for later.
I do the extraction with Quick Tasks.

Example:
Extract-kednoGrid:[2, 0] Cell text is "FirstName SecondName LastName"

and I change only the DataBindVirableName to FullNameTableCell (for example)

But when I run the test gives me the following error:

Value cannot be null.
Parameter name: key
InnerException:
System.ArgumentNullException: Value cannot be null.
Parameter name: key
   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at ArtOfTest.Common.Design.Extensibility.ExtractionDataStore.AddToStore(VerificationDescriptor descriptor, DescriptorValueStore values)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

Boyan Boev
Telerik team
 answered on 16 Mar 2016
1 answer
92 views
I have installed Telerik test studio trial version and while I launching the studio is crashing every time. Even I cant enter the trial key also, it crashes before i entering. Why it is happening. I checked all prerequisites for Test studio and my machine is qualified. Please help on this.
Elena
Telerik team
 answered on 15 Mar 2016
1 answer
77 views

I am trying to schedule the test list using TFS but keep getting errors. I have attached entire log here. 

 

Regards,

Dhaval Pathak

Elena
Telerik team
 answered on 12 Mar 2016
3 answers
117 views

Hi,

I have recorded a test, as one of the test steps are clicking on a drop down menu.

I changed opened a feature in our UI which causes it to change a bit (some tabs added). After the change, the tests failed and from what I could see is that the button ID changed.

It tries this:

Pages.Kenshoo.FrameMainViewIframe.Button1490BtnIconElSpan.Click(false);

After I opened the feature on the test server, seems like the button id changed (1490).

Any way to run this using a regex to capture the id?

 

Error:

 

Pages.Kenshoo.FrameMainViewIframe.Button1490BtnIconElSpan.Click(false);

 

Exception thrown executing coded step: '[WebTest_CodedStep] : Click 'Button1486BtnIconElSpan''.
InnerException:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used: 
[id 'Exact' button-1486-btnIconEl] AND [tagname 'Exact' span]

   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)
   at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.GetElement(HtmlFindExpression expr, Boolean waitOnElement, Int32 timeout)
   at ArtOfTest.WebAii.TestTemplates.ElementContainer`2.Get(TFindExpression expr, Boolean waitOnElement, Int32 timeout)
   at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.Get(HtmlFindExpression expr)
   at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.Get[TControl](HtmlFindExpression expr)
   at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.Get[TControl](String[] clauses)
   at TestProject1.Pages.KenshooPage.FrameMainViewIframeFrame.get_Button1486BtnIconElSpan() in c:\Users\tomeri\Documents\Test Studio Projects\TestProject1\Pages.g.cs:line 115
   at TestProject1.WebTest.WebTest_CodedStep() in c:\Users\tomeri\Documents\Test Studio Projects\TestProject1\WebTest.tstest.cs:line 53

Elena
Telerik team
 answered on 11 Mar 2016
3 answers
54 views

Hello Telerik Team,

 

I am getting deeper into the new versions features, ex. new Mobile Projects feature. And I just wanted to ask, if there any ability, to automate mobile web testing, through iOS and Android mobile browsers, using new Mobile Projects feature? And if it's not possible for now, do you have any plans for implementation of this seemingly very useful feature in nearly future?

 

Best Regards.

Boyan Boev
Telerik team
 answered on 10 Mar 2016
5 answers
201 views
Hi,

On one of my tests the steps include clicking on various links and waiting to see that the correct URL is loaded. These seem to fail (seemingly randomly, or at least according to a pattern that I can't figure out).


The scenario is as follows:

1. load index
2. wait for menu to exist
3. click on link in menu
4. confirm that browser navigates to topic page (waitforurl)
5. wait for a link to exist and then click on it
6. repeat 4 and 5 for a sub-topic page.
7. confirm that browser nagivates to article page (wait forurl)

The tests fail at 4 and 7. I can see in the browserUI that the page has correctly loaded, and finished loading within the wait period.

All I can guess is that perhaps some element on our page is confusing the picture somehow (either an iframe element or a modal window).

The exception is reproduced below:

Thanks,
Ed

-----------------------------------------------------------------------------------------------------------------------------------------

ArtOfTest.Common.Design.Exceptions.ExecutionException: Wait for condition has timed out ---> System.TimeoutException: Wait for condition has timed out at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout) at ArtOfTest.WebAii.Core.Browser.WaitForUrl(String url, Boolean isPartial, Int32 timeout) at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.WaitForUrlActionDescriptor.Execute(Browser browser) at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order) --- End of inner exception stack trace --- 
Boyan Boev
Telerik team
 answered on 10 Mar 2016
1 answer
105 views

Hi.

I am simulating a click on an entity within a web page. 

What I would like to do is to parametrize the entity name and pass it the value from the local data table I created.

I am unable to create a parameter, therefor, unable to bind the data table to the step.

My step is:

Pages.Kenshoo.FrameMainViewIframe.BUTestLink.Click(false);
I need the BUTestLink to be a parameter and binded to the data table.

 

thanks for the help!

Ivaylo
Telerik team
 answered on 10 Mar 2016
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?