Telerik Forums
Test Studio Forum
2 answers
380 views

Hi,
I need help to find and identify screen objects whose name changes.
Specific Scenario Example
I have a screen with a Logout button.  The visible text on the button is 'Logout ' plus the name of the logged on user (e.g. 'Logout Admin').  When I record the action of clicking on the button in Test Studio the script supplies a line that reads:
   
Click 'LogoutSpan'
or
   
Click 'LogoutSpan0'
or similar.
Question
How can I script so that the action works regardless of any number that may be appended to the 'LogoutSpan' part?
In fact, how can I identify anything (e.g. a 'Div') where its name or ID changes dynamically?

I thought that maybe some VB in the Code Behind window would be a solution, perhaps using a regular expression.  In the case of the button I came up with:

    Find.ByExpression("name=~Logout")
which I think will find any screen object with 'Logout' in its name, but got no further.  I tried to write an excution line, something like:
   
Button.Click(Find.ByExpression("name=~Logout"))
but the type-ahead prompt in the Code Behind window didn't have 'Button.Click' as an option.

I'm not a code wizard, and don't really understand regular expressions (and yes, I've read the available on-line documentation) so I would very much appreciate some help with this.  If I have a concrete example of how to resolve the above then I can build on it for the future.

Thanks,
Nigel Edwards, Transition Computing.

 

 

Nigel
Top achievements
Rank 2
 answered on 01 Mar 2012
1 answer
99 views
I am attempting to set up our schedule server and am running into the error "Unable to register machine! Error:" when I attempt to register the local machine. I have administrative access to the machine as well as the database. The database is also a fresh install exclusively for telerik use. I checked the logs through the event viewer for TelerikWebUIServiceSourceLog and there was an error reported there that reads:

Client register machine request failed: Object reference not set to an instance of an object. at Telerik.TestStudio.Scheduling.WindowsService.ScheduleManager.RegisterMachineClient(String& error, Machine machine)

Any suggestions on going about fixing this would be greatly appreciated!
Brad
Top achievements
Rank 1
 answered on 01 Mar 2012
1 answer
154 views
I am having some problems with tests when i attempt to schedule them and the execution server is running on a machine that is currently locked. The tests run fine when run manually of if I have the machine unlocked that is running the execution server. It doesn't seem to activate javascript elements the same way which is causing certain parts of the page to not be enabled. Has anyone had problems like this and if so how did you get around them.
Thanks
John
Anthony
Telerik team
 answered on 29 Feb 2012
1 answer
83 views
Hi

I see from some other posts that the current version does not allow recording of test outside IE
Are there any plans to change this as many projects are not using IE as there main browser

Aidan
Ivaylo
Telerik team
 answered on 29 Feb 2012
5 answers
220 views
I upgrade Test Studio to 2011.2.1413.0 and found that one of Elements in Element Explorer disappeared.

It presents in Pages.cs
public ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor Link_Contacts
{
    get
    {
        return Get<ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor>("class=ms-crm-NavBar-Subarea-Link", "title=Contacts");
    }
}
but there is no such element in Element Explorer
http://screencast.com/t/BbKtOrF049f

How could I fix it?
Plamen
Telerik team
 answered on 29 Feb 2012
3 answers
79 views
1. When I run the test case by it self not errored while when I run same test case within a list of test cases it's fail, while it should pass any clue?
2. The result of some test cases not consistent some time it's fail and other time it's pass, for example in the the execution of the Login, test "pass" because it's enter the UserId in full as recorded and other time "fail" because it doesn't enter the UserId in full as recorded, any idea way it does that? 

When I record the test case and play it again and it pass, it should always pass unless some thing get change. But that is not the case, any idea? how I improve the recording of the test cases to make it consistant
Plamen
Telerik team
 answered on 28 Feb 2012
1 answer
74 views
Hi,

I am doing data driven testing in Telerik test studio.
When it plays the steps for the second data or the second time,Internet explorer gives the following error message:

 


Run Time Error:

Internet explorer runtime-error-r6025

And when I click ok the browser closes automatically.

I want to know how to avoid this.


Thanks in Advance,
Sivanathan B


Plamen
Telerik team
 answered on 28 Feb 2012
9 answers
385 views
Hello!
I installed trial version of Telerik Test Studio 3 days ago.
I created test solution in vs2010 and try to add WebTest
After test item created - i see Error loading c:\xxx\xxx\xxxx\xxxx\webtest1.tstest: Test Studio license could not be validated.  Please obtain a valid activation code from http://www.telerik.com
What's wrong?

Nick Brzezinski
Telerik team
 answered on 27 Feb 2012
1 answer
86 views
Hi there,

I need to test the range of Textblock, say for example I need to test the contains of the Textblock should be within the range (0 to 999999), how I do that? any example?

 

Also how I check for negative value

Your help and support much apprecialted

Talal
Ivaylo
Telerik team
 answered on 27 Feb 2012
1 answer
140 views
Hello,

Is there any way in test studio to verify the date appearing in the date field is same as current system date without using any codded step?
Ivaylo
Telerik team
 answered on 27 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?