Telerik Forums
Test Studio Forum
1 answer
127 views
Hi,

I've the following problem.
I've made a test script that should fill in a text field (test step 16).
All the steps are executed successfully except the step that should fill in the text.

I selected the option 'Simulaterealtyping' but that didn't solve the problem.

Who can help me fix this problem?

Kind regards,
Mike.
Stoich
Telerik team
 answered on 05 Jan 2011
1 answer
97 views
The attached article (compressed format) may save some time to some beginner folks (like yours truly).
In my case, had i figured it out earlier, it would have saved me lots of time.

Bey
Keaegan
Telerik team
 answered on 04 Jan 2011
1 answer
83 views
hi,

I need to read a tool tip text when i hover over a text box.How can i do that?

Regards,
Kumar
Cody
Telerik team
 answered on 04 Jan 2011
1 answer
141 views
Hi,

I was just trying out the trial version of the WebUI Test Studio and I was able to:
1. record some web interactions
2. save project
3. export to c-sharp VS2010 project
4. open exported VS2010 project
   Inside my VS2010 project I have:
    1. New Test.aii
    2. Project.Elements 

however, when I tried to build the project I get the following:

Error 1 The "GenerateElementsTask" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319" directory. TestProject1

Thanks in advance to responses/help.

Annon
Cody
Telerik team
 answered on 04 Jan 2011
1 answer
136 views

 

At times (say, you have not attained perfectness yet - like yours truly), you may have made a mistake and modified the Find Logic of an element beyond repair (Telerik may actually modify your Find Logic at times - not sure why - and the messed up element will no longer be found and an error will persist).

If that happens to you, one of the ways to proceed is:

1.  Remove the element from the repository (Telerik will not let you do this as long as the element is refernced by some test.)

2.  Re-Record the step that involves this element in order to re-introduce the original element into the repository.

3.  Make sure the new element is found properly and is working correctly.

4.  Save that test.

5.  If needed (usually, it will be) copy that step with the newly introduced element to all other tests, if any (you will need to re-add those tests you eliminated from the project first.)

In order to accomplish the first step you have to:

1.  Determine all tests that reference this element.
You do this by changing the find logic of this element, click OK (upon which Telerik will display all tests where this element is referenced).  Write those tests down and cancel out to avoid making the changes.

2.  Eliminate the test(s) referencing this element from the project (but not delete them) - this is a choice on the right-click menu of any selected test script in the project view.

Keaegan
Telerik team
 answered on 04 Jan 2011
1 answer
212 views
In our application (which we are automating) , with a single button click we get invoice pop up as well as print pop up to print that invoice. We are not able to record closing of Print pop up as Telerik only provide recording options on "Invoice" Pop up. We tried to record Alt+F4 and used that to close the print pop up but that did not work. Control goes to print pop up and tool is not able to provide any recording option on print pop up. Is there any way we can record closing of this print pop up window. 

Appreciate quick help.
Thanks
Vikas
Keaegan
Telerik team
 answered on 03 Jan 2011
9 answers
471 views
Hi I'm getting an exception trying to integrate asp.net role and membership providers --
Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider
I'm getting this error with Sitefinity 4.0.992.0. I'm trying to use the aspnet role and membership tables.
The sitefinity tables are in the same database as the aspnet role and membership tables. The following are the steps taken which
result in an exception shown below.

Under Security
In Membership Providers > Create New
Name: AspNetMembershipProvider
Description:
ResourceClassId:
ProviderType: Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider
Version:

In Membership Providers > Create New
Name: AspNetMembershipProvider
Description:
ResourceClassId:
ProviderType: Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider
Version:

In Role Providers > Create New
Name: AspNetRoleProvider
Description:
ResourceClassId: Telerik.Sitefinity.Security.Data.SitefinityRoleProvider
ProviderType:
Version:

No back under security I set I changed DefaultBackendRoleProvider and DefaultBackendMembershipProvider from Default to the following  
DefaultBackendRoleProvider - AspNetRoleProvider
DefaultBackendMembershipProvider - AspNetMembershipProvider

Not sure if I need to change DefaultSecurityProvider which is left as OpenAccessDataProvide. Any ideas would be greatly appreciated.
Thanks Sean

The following is the exception I get when I try to login:

Exception Details: System.ArgumentException: Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider]
   Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +2216
   Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +74
   Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +214

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType) +0
   System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +517
   Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +753
   Telerik.Sitefinity.Security.SecurityManager.AuthenticateUser(String membershipProviderName, String userName, String password, Boolean persistent, User& user) +50
   Telerik.Sitefinity.Security.Web.UI.LoginForm.LoginForm_Authenticate(Object sender, AuthenticateEventArgs e) +240
   System.Web.UI.WebControls.Login.AttemptLogin() +166
   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +93
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +52
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691





John
Top achievements
Rank 1
 answered on 03 Jan 2011
3 answers
137 views
Hi,

We have a method called "InvokeModalDialog" which accepts two inputs - (Element element, string dialogTitle). Then we cast the element to HtmlControl by using the following:

HtmlControl control = element.As<HtmlControl>();

Next we call:

control.MouseClick();
This does not fire at all - we have IE8 and Windows 7 operating system. I have also tried Desktop.Mouse.Click.... events, etc. (If we manually mouse click at this stage everything works thereon)

On going through the forum, I came accross a property called "SimulatedRealClick" - but cannot find it in code to set its property. Please let us know how to set its property to "true" within the method "InvokeModalDialog"

Cheers,
Souvika
Keaegan
Telerik team
 answered on 03 Jan 2011
1 answer
113 views
I'm new to automated testing and am writing a simple smoke test to add a record, update that record and then delete that record.  The problem is that to update the record or delete the record, the application uses the record's internal key and each time I run the ADD test a new internal key is generated so the UPDATE and DELETE tests fail as they reference the internal key of the record that was added when the test was recorded.  The record to be updated or deleted is in devexpress grid.  The test searches for the record via its external name. To update, I click on a link in the grid to open a pop-up to Edit the selected record.  To delete, I click on a button in the grid which brings up a pop-up to choose a specific delete option. The URLs for the pop-up contain the internal key so the connect to pop-up steps are failing.

I have access to the internal key in the UI once the record is created.  Is there anyway to read that value during the test and pass it to another step that needs to use it? 

Stoich
Telerik team
 answered on 31 Dec 2010
3 answers
159 views
I have a variable that is created in a Subtest that I would need to reuse in another subtest. The System I am using requires Unique email addresses for Registration. In the Register subtest, I concat the First Name, Last Name, and Date Ticks to create a unique email address every time. The email address does not need to be valid at this time.

Subtest Register - create unique email
Subtest Login - use unique email to log in

These are part of a Main test with an Excel Data Source that the subtest Register is pulling the first and last name from.

My though would be if the email variable could be global.

Thanks,
Garry
Nikolai
Telerik team
 answered on 29 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?