Telerik Forums
Test Studio Forum
8 answers
78 views
Hoe do i get the width of an dynamic created table?

In Coded Step i do find the element with
            HtmlTable resultTable = Find.ByExpression<HtmlTable>("name=aspnetForm","|","TagName=table","id=~cmsWebControlContainer");

But resultTable.width returns nothing. 
resultTable.GetComputedStyle("width").Value return "auto"?

So, how can i get the real width?
Boyan Boev
Telerik team
 answered on 15 Dec 2014
1 answer
53 views
Hi,
I have few queries around How to select button based on configuration while executing the test script?:

i) Can you please guide me on how to automate following case:
On Product listing page listed there are three products listed which I can Add into Cart. I want to make product selection based on the configuration file (CSV or XLS..), means if config file saying add first product or first two products then script should consider this. 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.
ii) Is it possible to pass logical condition in the if else loop like logical checking with variables, I am able to add only the verification steps in this logical conditions.

Thanks,
Kanif
Ivaylo
Telerik team
 answered on 12 Dec 2014
1 answer
52 views
Hi,
I have few queries around how to do database connection in Telerik Test Studio. I am able to do it from Coded Step, however needed to confirm if it is without using Coded Step.

i) I am able to connect to a database and get the data from single database. Just need to confirm how to retrieve the data from two different databases.
ii) I want to create a config driven script where environment (Stage, Sandbox, QA etc.) is read from the config file. Each environment having different database connection string, so here I want to read the database connection string from config and pass this connection string to create new data source. Is it possible without using coded step?

Thanks,
Kanif
Ivaylo
Telerik team
 answered on 12 Dec 2014
1 answer
78 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
81 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
109 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
65 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
40 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
252 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
70 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
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?