Walter Ariel
Top achievements
Rank 1
Walter Ariel
asked on 16 Dec 2011, 02:36 PM
Hi ,
I'm trying to automate an Application using testing framework . The app uses SSL ( url contanis HTTPS :P ) and I seem unable to automate it .
Mainly, I'm encountering two problems.
1) While trying to access the site if I have " settings.Web.EnableSilverlight = true;" in my code at the initialization time I keep finding the "There is a problem with this website's security certificate." message. I've already added the site as a trusted one and even disabled the SSL warings at a registry level . Even if I try to "Continue to the website" I keep finding the same problem .
2) If Silverlight its disabled at initialization time , I'm able to get to the site and see the app , but if i enable silverlight once there and try to recover the app with "
I've read some limititations in "http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/silverlight-test-automation/introduction.aspx" at the bottom of the page. Are those the limitations for the current release?
Do you have any ideas on how may I proceed or what I might be doing wrong?
I'm trying to automate an Application using testing framework . The app uses SSL ( url contanis HTTPS :P ) and I seem unable to automate it .
Mainly, I'm encountering two problems.
1) While trying to access the site if I have " settings.Web.EnableSilverlight = true;" in my code at the initialization time I keep finding the "There is a problem with this website's security certificate." message. I've already added the site as a trusted one and even disabled the SSL warings at a registry level . Even if I try to "Continue to the website" I keep finding the same problem .
2) If Silverlight its disabled at initialization time , I'm able to get to the site and see the app , but if i enable silverlight once there and try to recover the app with "
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
" (as shown in : "http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/silverlight-test-automation/introduction.aspx") I keep getting a timeout exeption even with very very high timeouts set ("Manager.Settings.Web.SilverlightConnectTimeout= (5000000);") I've read some limititations in "http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/silverlight-test-automation/introduction.aspx" at the bottom of the page. Are those the limitations for the current release?
Do you have any ideas on how may I proceed or what I might be doing wrong?
12 Answers, 1 is accepted
0
Hi Walter Ariel,
I'm sorry you are running into this problem. Running the application under HTTPS is supported with IE only, but you are hitting a known issue with the EnableSilverlight property under HTTPS. This is already fixed and the fix will be included in our next internal build which will be released sometime next week.
If you can't wait that long I can send you a private build, but I have to warn you that private builds have not gone through our normal QA process to insure they work well.
I'm sorry for the caused inconvenience!
Regards,
Plamen
the Telerik team
I'm sorry you are running into this problem. Running the application under HTTPS is supported with IE only, but you are hitting a known issue with the EnableSilverlight property under HTTPS. This is already fixed and the fix will be included in our next internal build which will be released sometime next week.
If you can't wait that long I can send you a private build, but I have to warn you that private builds have not gone through our normal QA process to insure they work well.
I'm sorry for the caused inconvenience!
Regards,
Plamen
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
Walter Ariel
Top achievements
Rank 1
answered on 16 Dec 2011, 03:33 PM
Plamen , it would be great if you could send me the Private build. I need to start as soon as possible.
THanks.
THanks.
0
Hello Walter Ariel,
The build is available for download here: Public URL .
We'll appreciate any feedback from you!
Greetings,
Plamen
the Telerik team
The build is available for download here: Public URL .
We'll appreciate any feedback from you!
Greetings,
Plamen
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
Walter Ariel
Top achievements
Rank 1
answered on 16 Dec 2011, 04:39 PM
Thanks for the quick answer. Unfortunately , I don't seem able to download the file from that link.
Can you upload it elsewhere?
Thanks
Can you upload it elsewhere?
Thanks
0
Hello Walter Ariel,
Please try this link:
http://dl.dropbox.com/u/49960471/Telerik.TestStudio.2011.2.1216_Trial.msi .
Greetings,
Plamen
the Telerik team
Please try this link:
http://dl.dropbox.com/u/49960471/Telerik.TestStudio.2011.2.1216_Trial.msi .
Greetings,
Plamen
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
Walter Ariel
Top achievements
Rank 1
answered on 16 Dec 2011, 06:42 PM
Nope ... Access denied.
Any ideas? forgive me for being insistent on this , but I need to solve this as quick as posible.
Thanks for your comprehension .
Any ideas? forgive me for being insistent on this , but I need to solve this as quick as posible.
Thanks for your comprehension .
0
Hi Walter Ariel,
Cody
the Telerik team
I am sorry you are not able to download it from that link. As an alternative I've created a private DropBox folder for you and put the file in there. Once you join DropBox (it's free) you should be able to download it from this folder.
Best wishes,Cody
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
Walter Ariel
Top achievements
Rank 1
answered on 19 Dec 2011, 10:15 PM
HI ,
I've been able to download the build (it was our proxy blocking it) . It seems to solve the problem (at least I'm able to connect to the app) .
So , thanks about that.
I've got 2 questions.
1) when are you planning a final stable release with this fix?
2) Is there a way to WAIT for a Silverlight element to exist before continuing with the test? Can you paste a code snipet showing how to do that? I "find" the element by its name using : " var btn= App.Find.ByName("docBtn") ; " but as my app has a very long loading time , i need a way to ensure the element exists .
Thanks!
I've been able to download the build (it was our proxy blocking it) . It seems to solve the problem (at least I'm able to connect to the app) .
So , thanks about that.
I've got 2 questions.
1) when are you planning a final stable release with this fix?
2) Is there a way to WAIT for a Silverlight element to exist before continuing with the test? Can you paste a code snipet showing how to do that? I "find" the element by its name using : " var btn= App.Find.ByName("docBtn") ; " but as my app has a very long loading time , i need a way to ensure the element exists .
Thanks!
0
Hello Walter Ariel,
I'm glad to hear you are now able to connect to your app. The stable internal build will be released until the end of this week or at the beginning of next.
As for the second problem, please read this article on "Coded Wait for Element". You will find a Silverlight sample near the page bottom. The code is similar to this:
Using this code Test Studio will wait 10 sec for the button to appear.
Regards,
Plamen
the Telerik team
I'm glad to hear you are now able to connect to your app. The stable internal build will be released until the end of this week or at the beginning of next.
As for the second problem, please read this article on "Coded Wait for Element". You will find a Silverlight sample near the page bottom. The code is similar to this:
Button btn = Pages.SilverlightGridControl.SilverlightApp.Get<Button>(
new
XamlFindExpression(
"Name=docBtn"
),
true
, 10000)
Regards,
Plamen
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
Walter Ariel
Top achievements
Rank 1
answered on 26 Dec 2011, 09:08 PM
Hi Plamen .
I'm using Telerik Testing Framework right now , and I'm not able to find the Get Method.
I've got access to the app with
and I want to find an element there. The code I'm using is
but as I've already told you , I need to wait for it as page loading time changes all the time.
Can you lend me a hand on this one?
Also , Any news on the new release?
Thanks!
I'm using Telerik Testing Framework right now , and I'm not able to find the Get Method.
I've got access to the app with
app = ActiveBrowser.SilverlightApps()[0];
and I want to find an element there. The code I'm using is
app.Find.ByName(
"loginBtn"
) ;
Can you lend me a hand on this one?
Also , Any news on the new release?
Thanks!
0
Hello Walter Ariel,
To overcome this problem you need to change the application Find Strategy. Please try the following code:
the Telerik team
To overcome this problem you need to change the application Find Strategy. Please try the following code:
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
//Change the Find Strategy of the application
app.Find.Strategy = FindStrategy.WhenNotVisibleReturnElementProxy;
Button b = app.Find.ByName<Button>(
"button"
);
b.Wait.ForExists(60000);
In the above code, the Find object will actually simply return the object proxy that you can then invoke the
Wait on if the element can’t be found immediately.
As part of best practices, you can set back the original strategy in a finally block as seen in this Blog. Here's the code:
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
// save the original strategy to set it back at test end
FindStrategy originalStrategy = app.Find.Strategy;
try
{
//Change the Find Strategy of the application
app.Find.Strategy = FindStrategy.WhenNotVisibleReturnElementProxy;
Button b = app.Find.ByName<Button>(
"button"
);
b.Wait.ForExists(60000);
}
finally
{
// set back the original find strategy
app.Find.Strategy = originalStrategy;
}
Hope this helps!
Greetings,
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
Hi Walter Ariel,
Latest internal build (2011.2.1229) is now live on the website. You can download it from your Telerik account here: Public URL.
Thanks for your patience!
Kind regards,
Plamen
the Telerik team
Latest internal build (2011.2.1229) is now live on the website. You can download it from your Telerik account here: Public URL.
Thanks for your patience!
Kind regards,
Plamen
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