Telerik Forums
Testing Framework Forum
1 answer
48 views
Hi,

I think I found a bug. When I try to get the alt-attribute from an image and the first char is a ', this char will be ommited. Once again I tried Thread.Sleep() to see if it maybe hasn't fully loaded yet, but without success.
When the text is "'this' is the text" and assertion is
Assert.AreEqual("'this' is the text", img.Alt);


the result will be

Expected string length x but was x-1. Strings differ at index 0. Expected: "'this' is the text"   But was: "this' is the text"

No matter how long I wait.


Kind regards
Silvio

Boyan Boev
Telerik team
 answered on 20 Dec 2012
3 answers
126 views
Hi, Guys

I have a problem when doing UI automation for our in-browser Silverlight app, when simulate user copy and paste, silverlight will pop up a window and ask for permission, we cannot assume the copy and paste permission is already granted.

Currently we use the trick to workaround this, we focused to the "ok" button in the permission dialog and click space or enter, however that action will screw up the automation because I cannot find a way to know when permissionDialogPops is true, please help. Thanks

if(permissionDialogPops)
{
_myManager.Desktop.KeyBoard.KeyPress(Keys.Left);
_myManager.Desktop.KeyBoard.KeyPress(Keys.Space);
}
Cody
Telerik team
 answered on 19 Dec 2012
2 answers
81 views
Hello experts,

Recently I meet a problem with capturing image of  Silverlight application on 64 bit system (Win7, and I'm using Test Framework)

My Silverlight application runs in web browsers, 

I tried to capture a image of it using the capture image function of both
Browser.ContentWindow.GetBitmap().Save() and SilverlightApp.Capture.Save()

But sometimes I got an empty browser window image or a out of dated image (a image several seconds ago)

I also tried using different browsers (ie, chrome, firefox), the problem remains

At last I moved to a 32 bit system, and the same code worked

Is this a known issue and how can i use it on a 64 bit Windows ?

Thank you in advance!

Yc
Top achievements
Rank 1
 answered on 19 Dec 2012
1 answer
128 views
I have a web application that uses windows authentication. Is there a way to define what user the browser is using via the testing framework? 

Thanks!

~ Steve
Cody
Telerik team
 answered on 18 Dec 2012
4 answers
154 views
Hey there,
I've got a problem by using the framework in Visual Studio 2012 with ReSharper. Each time a test fails (sometimes even if it passes) I get the following error:

Task Runner Application has stopped working

Problem signature:

Problem Event Name: APPCRASH

Application Name: JetBrains.ReSharper.TaskRunner.CLR4.MSIL.exe

Application Version: 7.1.25.234

Application Timestamp: 50a26a13

Fault Module Name: KERNELBASE.dll

Fault Module Version: 6.1.7601.17965

Fault Module Timestamp: 506dcae6

Exception Code: c000041d

Exception Offset: 000000000000bccd

OS Version: 6.1.7601.2.1.0.274.10

Locale ID: 3079

Additional Information 1: 577c

Additional Information 2: 577cd5470d84ea1c2b40baf699d1553f

Additional Information 3: 1099

Additional Information 4: 10997aaa278c368b022feba3068a6d6c

I found the same issue at http://youtrack.jetbrains.com/issue/RSRP-276146, but without any solution.
However, I´m translating webtests from selenium and WatiN, but this Problem only occurs with the Telerik Testing Framework.
I hope you can help me with this.

 
Thanks
Silvio
Top achievements
Rank 1
 answered on 18 Dec 2012
15 answers
436 views
Hello everybody,

We are using the latest version of testing framework (1413) after upgrade of previous one and faced out that our already written test stop working under latest version of Firefox (10.0.2).
First of all we check any possible upgrade issues which can come with TTF and Firefox.
So TTF was reinstalled and the same with Firefox with rebooting test box of course. But it's does not help...

The Issue happen when try to launch new instance of FF by next code line:

Manager.LaunchNewBrowser(BrowserType.FireFox);

Note1:
There are no other instances of FF running at this moment.
After that FF start and hang with message:
"Preparing browser for automation... "
FF url contain the next - "http://localhost:56937/WebUI?420124481"
And this code step fails by timeout exception.

Note2:
In debug session (usually we run our tests from VS by ReSharper NUnit plugin) after timeout exception raised, close Firefox manually and try execute this step again. In such case FF start and test being executing normally. But this flow is not acceptable for as at all.
Moreover the same situation with other version of FF on other test machines.

Note3:
Firefox Extension is installed correctly and there are no any other conflicting add-ons in FF as was described in this article

Note4:
Previous TTF build (1305) works fine with different version of FF including FF9.
Also I'd like provide some info about used configuration of test machines:
OS: Win7 x32/64
Browsers: FF10, IE8,9
TTF build: 1413
NUnit: 2.5.10 (provided with ReSharper)

Exception details:
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)
 
So, dear TTF developers could your provide me some ideas what is happen and how it can be fixed ?
Thank you in advance,
Mykola.
 
Ivaylo
Telerik team
 answered on 17 Dec 2012
1 answer
174 views
I am trying to get the value of an attached property using the telerik test studio express with wpf test. I have access to the dlls that are used by the application so I want to try and script a few things in the test using the applications dlls. How would I go about getting the value of an attached property in code either by using the automation objects provided by telerik, or by getting actual objects from the visual tree. (e.g. System.Windows.DepenendcyObject) and then writing code using the application dlls. (e.g. "depObj.GetValue(WindowScope.WindowId)")

Thanks,

Ryan Burt
Cody
Telerik team
 answered on 10 Dec 2012
5 answers
304 views
Hello.
I have a problem to find element with jQuery.

HTML:
<table id="descriptorTable" class="rf-dt table table-striped">
<colgroup span="5"></colgroup>
<thead id="descriptorTable:th" class="rf-dt-thd">
<tbody id="descriptorTable:tb" class="rf-dt-b">
<tr class="rf-dt-r rf-dt-fst-r">
<td id="descriptorTable:0:j_idt664" class="rf-dt-c" style="text-align: center;">
<input type="checkbox" onclick="updateButtonState()" name="descriptorTable:0:j_idt665">
</td>
<td id="descriptorTable:0:j_idt666" class="rf-dt-c" style="text-align: center;">ANEEIGP</td>
<td id="descriptorTable:0:j_idt668" class="rf-dt-c" style="text-align: center;">2</td>
<td id="descriptorTable:0:j_idt670" class="rf-dt-c" style="text-align: center;">
<td id="descriptorTable:0:j_idt672" class="rf-dt-c" style="text-align: center;">
</tr>
<tr class="rf-dt-r firefinder-match">
</tbody>
<tbody id="descriptorTable:sc">
</table>

I need to get CheckBox in a row in which in second cell text equal to some text.
My real jQuery wihich work in FireBug is : 
$('#descriptorTable tr:contains(\'ANEEIGP\') input');

But when i try to convert it to WebAii jQuery it return ObjRefException.
Find.ByExpression<HtmlControl>("id=descriptorTable", "|", "tagindex=tbody:0").
Find.jQuery().tag("tr").contains(closedProejct).first<HtmlTableRow>().
            Find.ByExpression<HtmlInputCheckBox>("tagname=input").Check(true, true);

i can find cell with this text but i cant get checkbox, because of i cant get parent element of cell.
Find.ByExpression<HtmlControl>("id=descriptorTable", "|", "tagindex=tbody:0").Find.jQuery().tag("tr").descendant()
               .contains(closedProejct).parent().tag("tr").first<HtmlTableRow>().
           Find.ByExpression<HtmlInputCheckBox>("tagname=input").Check(true, true);

I know i can get it with LINQ and Find Expressionsm but i want to know how i can get it with WebAii jQuery.
Thanks.
Anton
Top achievements
Rank 1
 answered on 10 Dec 2012
1 answer
159 views
Hello,

Thanks for your great products first. We developed our automation test program based on the test framework and it works fine.

Now the question is, is there a way we can only install the browser plugin without installing the whole test framework msi?

For Firefox and Chrome, I noticed there's a folder with plugin files there. 

But where can I find the plugin for Internet Explorer file and how can I install it?

Thank you
Byron
Telerik team
 answered on 05 Dec 2012
3 answers
102 views
Hi,

Please refer to the attached file.
I'm using FF 12.0 and I have noticed the error message after installing 'Telerik_Testing_Framework_2012_1_719_FREE_EDITION.msi'

Please advice if that requries any actions.

Ta,

Seth.
Ivaylo
Telerik team
 answered on 04 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?