Hi there,
we are evaluating WebUI Developer edition with WIndows7/VS2010. Our silverlight aplication is using Tooltip property for displaying validation messages on TextBox controls. There was no mean to record that through WebUI. When hover the mouse it was showing a path control instead which doesn't reflect any of the tooltip properties.
Any help is highly appreiciated!
we are evaluating WebUI Developer edition with WIndows7/VS2010. Our silverlight aplication is using Tooltip property for displaying validation messages on TextBox controls. There was no mean to record that through WebUI. When hover the mouse it was showing a path control instead which doesn't reflect any of the tooltip properties.
Any help is highly appreiciated!
5 Answers, 1 is accepted
0
Hello Ryan,
Thank you for contacting us.
Indeed, we are limited in automating Silverlight due to the nature of some specific controls/elements. The first steps to solve that limitation are already live with the 2010 Q1 Service Pack we just released and the ability to track ChildWindow and popup controls in Silverlight. Unfortunately that doesn't help with the tooltips -- they simply aren't instantiated so that we can track them as in the post I pointed.
I've logged this as a bug and am bookmarking this thread. I'll update it as soon as we have any solution to that. Please accept our apologies for the caused inconvenience and let us know if you have any other questions.
All the best,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Thank you for contacting us.
Indeed, we are limited in automating Silverlight due to the nature of some specific controls/elements. The first steps to solve that limitation are already live with the 2010 Q1 Service Pack we just released and the ability to track ChildWindow and popup controls in Silverlight. Unfortunately that doesn't help with the tooltips -- they simply aren't instantiated so that we can track them as in the post I pointed.
I've logged this as a bug and am bookmarking this thread. I'll update it as soon as we have any solution to that. Please accept our apologies for the caused inconvenience and let us know if you have any other questions.
All the best,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ward
Top achievements
Rank 1
answered on 29 Jul 2010, 02:33 AM
I want to pile on. MS recommends displaying validation errors in the tool tip. All of their controls are built out-of-the-box to display INotifyDataErrorInfo text in this manner.
This is a natural test target. We want to know that the proper message was displayed when the user entered a specific invalid value ... and that the message goes away when the user enters a corrected value. I can (and should) test some of this in my non-visual unit tests but this is obviously something QA wants to check with UI automation tests.
Accordingly, I recommend high priority attention to this one.
Having a great time!
This is a natural test target. We want to know that the proper message was displayed when the user entered a specific invalid value ... and that the message goes away when the user enters a corrected value. I can (and should) test some of this in my non-visual unit tests but this is obviously something QA wants to check with UI automation tests.
Accordingly, I recommend high priority attention to this one.
Having a great time!
0
Hi Ward,
I agree, that completely makes sense.
I passed your request to our developers. Thanks for your time and feedback!
Regards,
Konstantin Petkov
the Telerik team
I agree, that completely makes sense.
I passed your request to our developers. Thanks for your time and feedback!
Regards,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Kiran
Top achievements
Rank 2
answered on 30 Jul 2010, 08:33 PM
Hi Ryan,
There is a small workaround for you.
By this solution you verify if there is any error or not. But you cant verify the text in the tooltip.
Almost all the controls which shows the error tooltip has a Border element with the name "ValidationErrorElement".
If there is no error it will not be visible. If there is any error it will become visible. You can use the visibility property to check the error.
I have a TextBox which has a validation that the text entered should be greater than 4.
Code is give bleow. Try out and let me know if its working and solves the issue.
Valiadtion
Thanks
Kiran
There is a small workaround for you.
By this solution you verify if there is any error or not. But you cant verify the text in the tooltip.
Almost all the controls which shows the error tooltip has a Border element with the name "ValidationErrorElement".
If there is no error it will not be visible. If there is any error it will become visible. You can use the visibility property to check the error.
I have a TextBox which has a validation that the text entered should be greater than 4.
Code is give bleow. Try out and let me know if its working and solves the issue.
SilverlightApp CurrentApplication;
[TestMethod]
public
void
ValidationControlTest()
{
Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
ActiveBrowser.NavigateTo(
"http://localhost:2463/SampleApplicationTestPage.aspx"
);
// Get an instance of the running Silverlight Application.
CurrentApplication = ActiveBrowser.SilverlightApps()[0];
TextBox txtStudentName = CurrentApplication.Find.ByType<TextBox>();
ArtOfTest.WebAii.Silverlight.UI.Border validationElement = txtStudentName.Find.ByName<ArtOfTest.WebAii.Silverlight.UI.Border>(
"ValidationErrorElement"
);
txtStudentName.User.TypeText(
"xy"
,50);
Manager.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.Tab, 50);
CurrentApplication.VisualTree.Refresh();
CurrentApplication.RefreshVisualTrees();
validationElement = txtStudentName.Find.ByName<ArtOfTest.WebAii.Silverlight.UI.Border>(
"ValidationErrorElement"
);
if
(validationElement.Visibility == Visibility.Visible)
{
Log.WriteLine(
"Validation error in textbox is there"
);
}
Assert.IsFalse(validationElement.Visibility == Visibility.Visible,
"Validation Error is there"
);
Thread.Sleep(20000);
}
Valiadtion
public
string
NameOfStudent
{
get
{
return
m_Name; }
set
{
if
(value !=
null
)
{
if
(value.Length <= 4)
{
throw
new
Exception(
"Length should be greater than 4."
);
}
}
m_Name = value;
this
.RaisePropertyChanged(
"NameOfStudent"
);
}
}
Thanks
Kiran
0
Hi All,
The latest internal build (both WebUI Test Studio Dev/QA and WebAii Testing Framework) labeled 2010.2.806 adds the support of Silverlight Tooltip's through a ToolTipText property of the FrameworkElement along with verification of the ToolTip text in WebUI Test Studio. Note, for the complex tooltips we accumulate the text recursively from the sub elements of the tooltip.
This addition will get official once we release the Service Pack of 2010 Q2 scheduled for the end of August. Your feedback is welcome!
Regards,
Konstantin Petkov
the Telerik team
The latest internal build (both WebUI Test Studio Dev/QA and WebAii Testing Framework) labeled 2010.2.806 adds the support of Silverlight Tooltip's through a ToolTipText property of the FrameworkElement along with verification of the ToolTip text in WebUI Test Studio. Note, for the complex tooltips we accumulate the text recursively from the sub elements of the tooltip.
This addition will get official once we release the Service Pack of 2010 Q2 scheduled for the end of August. Your feedback is welcome!
Regards,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items