Telerik Forums
Test Studio Forum
9 answers
381 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
104 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
83 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
136 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
7 answers
154 views
I recorded quite a few tests that have a mouse hover over event.  The tests work the same day I record the test but the next day the tests fail.  The solution is to re-record the hover over step and the step after (clicking the sub-menu item).  Please advise.

I attached some screenshots.

In the attachment, step 5 is the hover over and step 6 is the clicking of the sub-menu item.  Even though it is showing that step 7 is failed, when I re-record steps 5 and 6, the whole test passes.  But I have to re-record this every couple of days and it seems counterproductive.

Thanks,

Garett
504.487.6872
garett.majoue@geocent.com
Cody
Telerik team
 answered on 28 Dec 2010
1 answer
75 views
I am evaluating testing frameworks.

You have WebUI Test Studio. Do you will continue update WebAii free with new features and bug fixes or the continuity of the project will stop?

There is not much information about this (about WebAii, there is almost no information in telerik site). An, far as I can see, all links that have mentioned "WebAii" go to somewhere that says "WebUI". Excluding the installation documentation, I don't find any other documentation about WebAii free.

I am concerned because I don't want to choose a framework that will be "dead" soon or later. What I mean with "dead" is that, eventually, it will stop in time.

Best Regards,

Bruno Almeida
Cody
Telerik team
 answered on 28 Dec 2010
3 answers
230 views
Hi all,

I'm writing on behalf of our test team that's getting started with WebIO Test Studio QA Edition and have run into a few challenges in setting up tests. Together we weren't able to find samples to do what we're hoping to get done but I assume it's possible in some way.
We have several tests created in the test studio that are running great but are seeing failures usually due to unreliable element IDs. The test team is less technical than a typical QA department so are relying heavily on the test recorder.

1) One of our pages contains an arbitrary number of textboxes (HTML INPUT fields). Our test script adds a new textbox by triggering a postback using other controls on the page. After that, we want to verify that there exists a textbox on the page containing the text we entered.
Using the recorder, the textbox is always identified by ID which fails on subsequent runs.
I suppose the short form of the question is "how do I verify that there exists on the page (or within a particular div) an INPUT with value X?". Can this be done using the GUI tools without (or using minimal) code?

2) How do we verify that a list (HTML SELECT) contains (not necessarily selected) a particular value? The IDs of the items are also unreliable, but we know the value we're looking for. The ID of the SELECT element is known.

3) How do we verify that a list (HTML SELECT) does NOT contain a particular value? I suspect a GUI-created solution isn't possible for a case like this.

4) How do we verify that a list (HTML SELECT) contains no items (OPTIONs)?

The test recorder is great for static pages but dynamic IDs have proven challenging to them. We went through a getting started guide together and didn't find anything that went into the areas we're having troubled with. If there is some supplemental documentation that points us in the right direction that would be super.

Thanks!
Keaegan
Telerik team
 answered on 27 Dec 2010
5 answers
152 views
I'm using WebUI Test Studio 2010.2 to test an application that deals with orders for temporary workers.  When a new temp order is created, a new guid is generated by the application and comes back to the web browser in a session variable.  That value is then used in multiple places - links on the page, the url in the address bar, etc.  Each time a new temp order is created it has a new guid. Note that the actual creation of the new guid and the new temp order record in the DB occurs upon the submission of form 1 in a 5-form process.  So on page 1 there is no temp order and thus no guid.  On pages, 2-5 - and all attendant lookups/popups - the guid hangs around to ensure all the actions are performed against that exact order and no other.

At the moment, the recorder does a fine job of recording all of these values but of course running the test fails since it's looking for the guids found when it was recorded, and now they're all 'wrong'.  The guids are not sequential, they are totally random in the form of "8-4-4-4-12" , a hexidecimal string.  I can't imagine the idea of dynamic values - that are not pre-recorded in a file - hasn't occurred to anyone at  Telerik.  I'm sure it's my own ignorance of the test suite, but I can't find any information about this in the docs.  How do I get this done?

Thanks,
Todd B.
Keaegan
Telerik team
 answered on 27 Dec 2010
3 answers
158 views
Hi,

I have an scenario where I need to find all the HyperLinks in Row which is having only one cell. I am Using WebUI Studio 2010.3 QA Edition(Trail One). Please find the screenshot attached. In the attached screen-shot page no's are displayed in the last Row of a table where our automation scenario requires to navigate through the all Page's by clicking on each page link & check the contents in the page.  The Screen Shot Contains only to couple of pages to navigate, but in some sceanrios we may require to navigate through 9-10 pages based on Data. I am struck at this point where i am not able to find any dynamic code to traverse through all pages.Please help me in resolving this problem.

Waiting for your reply.

Thanks,
Kalyan
Cody
Telerik team
 answered on 27 Dec 2010
1 answer
123 views
The project I am automating with my collegues is based on an application where each client has their own URL (and database instance).
That application also has a requirement that only one session is "tolerated" for a given client.
So, when client1.CrazyApp.com logs in and there is already a session for client1.CrazyApp.com then the existing session is terminated by the server.

I want to work on the same project with my co-workers using more than one URL to automate testing of the same application without having to worry about being bumped off.

Telerik enables me to change the base URL on the TestList level but not on the Test level, so we keep bumping each other off.

If anyone had to deal with a similar situation and solved the issue - please help.

I would hate to keep the automation completely separate then merge the two parts of the same project as i expect lots of issues and problems.

Much appreciated,
Cody
Telerik team
 answered on 27 Dec 2010
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?