Telerik Forums
Test Studio Forum
5 answers
138 views
I have a link that when clicked deletes an address. I'm not sure how to get the test to work for this.

Please see the attached file

Here is the DOM: <a href="http://xxxx.xxxx.com/site/account/addresses.jsp?addressUsage=SHIP_TO&amp;_DARGS=/np/site/account/addresses.jsp.1_A&amp;_DAV=61dba2ef-43c7-480f-aefd-f0097eea86ce&amp;_dynSessConf=7286385053344787325">Delete</a>

Here is the test log:

Overall Result: Fail
------------------------------------------------------------
'12/5/2014 6:13:37 PM' - Executing test: 'Address Management', path: 'Address Management.tstest.'
'12/5/2014 6:13:37 PM' - Using .Net Runtime version: '4.0.30319.18444' for test execution. Build version is '2014.3.903.0'.
'12/5/2014 6:13:37 PM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'12/5/2014 6:13:39 PM' - Using 'InternetExplorer' version '11.0' as default browser.
'12/5/2014 6:13:45 PM' - 'Pass' : 1. Navigate to : 'http://xxxx.xxxx.com/'
'12/5/2014 6:13:45 PM' - 'Pass' : 2. Click 'SignInLink'
'12/5/2014 6:13:47 PM' - 'Pass' : 3. Click 'LoginEmail'
'12/5/2014 6:13:47 PM' - 'Pass' : 4. Enter text 'teststudio@pens.com' in 'LoginEmail'
'12/5/2014 6:13:47 PM' - 'Pass' : 5. Enter text '000000' in 'PasswordPassword'
'12/5/2014 6:13:48 PM' - 'Pass' : 6. Click 'AtgUserprofilingProfileFormHandlerLoginImage'
'12/5/2014 6:13:49 PM' - 'Pass' : 7. Click 'AddNewLink'
'12/5/2014 6:13:51 PM' - 'Pass' : 8. Enter text 'Test' in 'FirstNameText'
'12/5/2014 6:13:51 PM' - 'Pass' : 9. Enter text 'studio' in 'LastNameText'
'12/5/2014 6:13:51 PM' - 'Pass' : 10. Enter text '555-555-1212' in 'PhoneNumberText'
'12/5/2014 6:13:51 PM' - 'Pass' : 11. Enter text '12345 any street' in 'Address1Text'
'12/5/2014 6:13:52 PM' - 'Pass' : 12. Enter text 'any town' in 'CityText'
'12/5/2014 6:13:52 PM' - 'Pass' : 13. Select 'ByValue' option 'CA' on 'StateSelect'
'12/5/2014 6:13:52 PM' - 'Pass' : 14. Enter text '92064' in 'PostalCodeText'
'12/5/2014 6:13:52 PM' - 'Pass' : 15. Click 'AddSubmitButton'
'12/5/2014 6:14:06 PM' - 'Pass' : 16. Click 'ChooseBtnsubmitButton'
'12/5/2014 6:14:07 PM' - 'Pass' : 17. Click 'Submit'
'12/5/2014 6:14:07 PM' - 'Pass' : 18. Enter text 'test' in 'FirstNameText'
'12/5/2014 6:14:08 PM' - 'Pass' : 19. Enter text 'studio' in 'LastNameText'
'12/5/2014 6:14:08 PM' - 'Pass' : 20. Enter text '555-555-1212' in 'PhoneNumberText'
'12/5/2014 6:14:08 PM' - 'Pass' : 21. Click 'Div'
'12/5/2014 6:14:08 PM' - 'Pass' : 22. Enter text '12345 any street' in 'Address1Text'
'12/5/2014 6:14:08 PM' - 'Pass' : 23. Enter text 'any town' in 'CityText'
'12/5/2014 6:14:08 PM' - 'Pass' : 24. Select 'ByValue' option 'CA' on 'StateSelect'
'12/5/2014 6:14:08 PM' - 'Pass' : 25. Enter text '92064' in 'PostalCodeText'
'12/5/2014 6:14:08 PM' - 'Pass' : 26. Click 'AddSubmitButton'
'12/5/2014 6:14:19 PM' - 'Pass' : 27. Click 'ChooseBtnsubmitButton'
'12/5/2014 6:14:50 PM' - 'Fail' : 28. Click 'DeleteLink'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to locate element. Details: Attempting to find [Html] element using
Find logic
 (Html): [href 'Exact' http://xxxx.xxxx.com/site/account/addresses.jsp?addressUsage=SHIP_TO&amp;_DARGS=/np/site/account/addresses.jsp.1_A&amp;_DAV=0815b88c-1855-4e4e-9180-c21d47fc4550&amp;_dynSessConf=95305284283785042] AND [tagname 'Exact' a]

Unable to locate element. Search failed!

Learn more about finding elements here:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/unable-to-locate-element.aspx
------------------------------------------------------------
'12/5/2014 6:14:50 PM' - Detected a failure. Step is marked 'ContinueOnFailure=True' continuing test execution.
'12/5/2014 6:14:50 PM' - 'Pass' : 29. Click 'DeleteLink'
'12/5/2014 6:14:50 PM' - 'Pass' : 30. Click 'NotTestLink'
'12/5/2014 6:14:53 PM' - 'Pass' : 31. Click 'Span'
------------------------------------------------------------
'12/5/2014 6:14:53 PM' - Overall Result: Fail
'12/5/2014 6:14:53 PM' - Duration: [1 min: 13 sec: 773 msec]
------------------------------------------------------------
'12/5/2014 6:14:53 PM' - Test completed!

Thanks,

Wade
Ivaylo
Telerik team
 answered on 11 Dec 2014
1 answer
91 views
We've added a RadAutoCompleteBox to a control which handles email addresses and suggests those which have already been used.  I need to click in the box, and begin typing a few characters of a name, then verify the autocomplete suggested values are displaying what I want, and either continue typing or select a value.  The trouble I'm having is that once I get the automation to stop entering text, the control assumes that I'm done adding the value so it completes the entry and doesn't show me the suggested values.  This prevents me from accessing the items in the RadListBox/autocomplete results.

I've tried different flavors of this so far without any luck (using Test Studio 2014.1.410):

//Attempt 1
<RadAutoCompleteBox>.TypeText("Test");
<RadListBox>.Items[0].User.Click();
//At this point "Test" is typed into the box, but then focus is lost so the autocomplete box doesn't display, it just assumes "Test" is all that was needed to be entered and I get an error attempting to click the RadListBox

//Attempt 2
<RadAutoCompleteBox>.User.Click("Test");
SendKeys.SendWait("Test");
<RadListBox>.Items[0].User.Click();
//Same result as above, focus is lost after entering "Test" so the autocomplete box never opens and I get an error attempting to click the RadListBox

//Attempt 3
//Recorded Step: Click in the RadAutoCompleteBox
//Recorded Step: Type "Test" into the box
//Recorded Step: Select the first entry in the RadListBox
//These steps will click in the box, enter the text, but once again not recognize the RadListBox autocomplete results


Any other suggestions as to how I can approach this?  

Thanks,
Nick
Cody
Telerik team
 answered on 10 Dec 2014
1 answer
58 views
Hi

How can I make the embedded test case run successfully every time?

I have a test case called 'Asset Register'. Inside 'Asset Register' test case, I insert a 'Test as step' to call another test case called 'Create New Asset'.

I don't know why the embedded test (i.e. Create New Asset') cannot be called successfully sometimes. If I rerun the main test case (i.e. Asset Register) again, the embedded test case can be run fine.

Any ideas?

My application is Silverlight application.

Thanks
Cody
Telerik team
 answered on 09 Dec 2014
3 answers
310 views
Hi,

I have a coded step that does the ff:

string.compare(textblocka.text, texta)
string.compare(textblockb.text, textb)
....
string.compare(textblockz.text, textz)

I want to fail this particular coded step if any of the string compare fails, but I'd like the test to continue comparing the other texts after the failure. Is this doable? Right now what I have are just logs, e.g. Log.WriteLine(<error message>). So the step is still marked as passed. Also, I can't access these logs in the quick execution, because quick executions do not have logfiles.

Regards,
Kristine
Ivaylo
Telerik team
 answered on 08 Dec 2014
3 answers
100 views
hi, I am doing poc on test studio , it is possible to test the http link with dynamic parameters(both load test and web test)
such as
http://www.w3schools.com/bootstrap/tryit.asp?filename=@parameters
Ivaylo
Telerik team
 answered on 05 Dec 2014
1 answer
105 views
Hi, 

We are trying to run our Telerik UI tests from Visual Studio and getting the below error.

Result
Message:        

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

'12/1/2014
3:55:25 PM' - Executing test: 'BingTest', path: 'BingTest.tstest.'

'12/1/2014
3:55:25 PM' - Using .Net Runtime version: '4.0.30319.34014' for test execution.
Build version is '2014.3.903.0'.

'12/1/2014
3:55:25 PM' - Starting execution....

'12/1/2014
3:56:26 PM' - Failure detected during execution. Details:

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

'12/1/2014
3:56:26 PM' - 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.Manager.WaitForBrowserToConnect(Int32
browserIndexToWaitFor)

   at
ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch,
Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String
arguments)

   at
ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams
initParams)

   at
ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test
test, ExecutionEngineCreateParams cp)

   at
ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand
command)

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

'12/1/2014
3:56:26 PM' - Test completed!



The test has just 2 steps.

Navigate to 'http://bing.com'
Verify 'TextContent'
'Contains' 'Make Bing my homepage' on 'DhpLink' 

When I run the test, Internet explorer opens, but it times out and doesn't even navigate to bing when executed from Visual studio or MTM. On the other hand, it works perfectly from Telerik Test Studio.  

We get the same error even running our other test scripts. Please could you help us resolve this issue?

Thanks,
Niharika

Cody
Telerik team
 answered on 05 Dec 2014
1 answer
130 views
Hi

This is my first time recording an automated test using Telerik, I am recording a click on drop down and then selecting a check box in that list of values.
When i playback, this test step is failing. Can you please suggest a way on how to record this or if i have to add some code in order to record the above
function
 Below is the error i am getting when executing

Failure
Information: ~~~~~~~~~~~~~~~Unable to find the target host
(Browser/SilverlightApp) to locate an element. Failure: Waiting
for frame '[Frame:id=resultFrame,name=resultFrame,src=https://" + Mscrm.CrmUri.create("/_static/blank.htm").toString() + ",UseQuery:False]' timed out. Error: Wait for condition has timed outInnerException:System.Exception:

Unable to find the target host (Browser/SilverlightApp) to locate an
element. Failure: Waiting for frame '[Frame:id=resultFrame,name=resultFrame,src=https://" + Mscrm.CrmUri.create("/_static/blank.htm").toString() +
",UseQuery:False]' timed out. Error: Wait for condition has timed out   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32
order)------------------------------------------------------------'12/1/2014
4:33:12 PM' - Detected a failure. Step is marked
'ContinueOnFailure=False' aborting test execution.------------------------------------------------------------'12/1/2014 4:33:12 PM'
- Overall Result: Fail'12/1/2014 4:33:12 PM' - Duration: [1 min: 25 sec: 365 msec]

Thanks,
Harika
Boyan Boev
Telerik team
 answered on 04 Dec 2014
1 answer
93 views
Hi,
When I attempt to see if an item is visible, I receive an error when the object is not there.  I do not see an error when it's there.  Is thee a way to find out if it there with out an error when its not?

Thanks,
John 



bool Isthere = false;

Isthere = Pages.JointCommissionResources17.EnterpriseCell.IsVisible();

'12/1/2014 3:45:00 PM' - 'Fail' : 3. [PortalSelectOrgList_CodedStep] : RadComboBox('rcbSite'): selecting item with index '0'------------------------------------------------------------Failure Information: ~~~~~~~~~~~~~~~Exception thrown executing coded step: '[PortalSelectOrgList_CodedStep] : RadComboBox('rcbSite'): selecting item with index '0''.InnerException:ArtOfTest.Common.Exceptions.FindElementException: Element Not found!FindExpression used: [id 'Exact' rcbSite] AND [tagname 'Exact' div] 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 EProducts1.Pages.JointCommissionResources0Page.get_RcbSiteDiv() in \\jcrfs1\com_software$\TelerikProjects\EProducts\EProducts1\Pages.g.cs:line 664 at EProducts1.PortalSelectOrgList.PortalSelectOrgList_CodedStep() in \\jcrfs1\com_software$\TelerikProjects\EProducts\EProducts1\Portal\PortalSelectOrgList.tstest.cs:line 63
Boyan Boev
Telerik team
 answered on 04 Dec 2014
3 answers
185 views
I cannot seem to figure out how to hold CTRL and select multiple RadGridView cells to select multiple rows at once.

When I attempt to record the actions, each time I hold CTRL and click a row, the recorder opens the record rather than just selects it.

When I attempt to use the following snippets of code to select a cell in row 1 and 2, the first selection is not retained:

RadGridView grid = Pages.Test.SilverlightApp.TestRadGridView;

grid.Rows[0].Cells[0].User.Click(MouseClickType.LeftClick, 1, 1, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(131072)));
grid.Rows[1].Cells[0].User.Click(MouseClickType.LeftClick, 1, 1, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(131072)));

How can I hold CTRL and select more than 1 RadGridView item, and retain each item(s) selected previously?

Thanks,
Nick
Ivaylo
Telerik team
 answered on 04 Dec 2014
1 answer
128 views
I recorded a test in Chrome that involves clicking on a button to upload a file and it runs without failures in Internet Explorer. In Chrome the test hangs when trying to press the button. The test records that clicking the button was successful but no dialog opens. If I manually click on the button during the test, the test completes the remaining steps (inputting a path and clicking Open) successfully. I'm using the latest version of Test Studio and Chrome. Any ideas how I could fix this issue?
Boyan Boev
Telerik team
 answered on 03 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?