Telerik Forums
Test Studio Forum
1 answer
110 views
Hi,
I am facing following issues around reading data from configuration file, I am able to do it from Coded Step, however needed to confirm if it is possible using built-in
features of Telerik Test Studio.

i) How to read the configuration data from the configuration file (CSV or XLS..), assign to variables and use variable in the SQL query while binding database.
ii) How we can update the config file or data file without using the coded step.

Thanks,
Kanif
Ivaylo
Telerik team
 answered on 12 Dec 2014
3 answers
124 views
Here is my situation.... I have an element on the page I'm testing that is not visible on the screen (you have to scroll down to find it). My test throws an error that the element is not found. So I try using a coded step that has a line like this:

Pages.Page.Element.ScrollToVisible();

But, since ScrollToVisible is using the same object that couldn't be found to begin with, I end up with the same element not found error. Am I using ScrollToVisible correctly? The 'documentation' I've been able to find simply shows that ScrollToVisible exists. Nothing with an example or the context in which it is used. Any help on how to address this situation would be appreciated.

Thanks

Doug
Cody
Telerik team
 answered on 11 Dec 2014
5 answers
145 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
101 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
62 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
321 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
104 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
113 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
133 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
103 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?