Telerik Forums
Test Studio Forum
5 answers
251 views
01.[CodedStep(@"ImageComp")]
02.public void Comparison_CodedStep()
03.{
04.    System.Drawing.Bitmap actualbmp = new System.Drawing.Bitmap(@"pink3.png");
05.    System.Drawing.Bitmap expectedbmp = new System.Drawing.Bitmap(@"pink5.png");
06.    ArtOfTest.Common.PixelMap expected = ArtOfTest.Common.PixelMap.FromBitmap(expectedbmp);
07.    ArtOfTest.Common.PixelMap actual = ArtOfTest.Common.PixelMap.FromBitmap(actualbmp);
08. 
09.    Assert.IsTrue(expected.Compare(actual, 0.0));
10.}

Above is my code for the image comparison I am carrying out with the 2 attached PNGs. Both pink squares are 300 by 300 pixels. Each black square contained inside each pink square is 50 x 50 pixels. In examining the images, it is inherently obvious that they are different, the black squares are in completely separate locations. But, with a tolerance of 0, the test I have this coded step in still passes. So it brings me to my question...

How is this test passing?

What is the Compare function testing for? A summation of pixel values?

Is there a workaround to this? How can I make this test fail without modifying the images?

~ Max

Cody
Telerik team
 answered on 03 Jun 2015
4 answers
1.6K+ views

I am working with a WPF application. I am curious if it is possible to detect if a certain element in the UI is under focus?

The attached screenshot shows 2 fields, the 1st of which has focus. The 2nd one does not.

I found a similar post but it was slightly out of date and I was not sure if it discussing WPFs here: Finding Focus.

~ Max

Cody
Telerik team
 answered on 02 Jun 2015
3 answers
108 views

The issue I am having is importing excel files. My excel file consists of nothing but a few steps in column A, rows 1 - 3. Whenever I try to import the XLSX, after inputting the file path, I move to the Select Table drop down menu and click on the arrow. As you can see in the screenshot, nothing shows up when it drops down. The same thing happens for the Select Column drop down menu.

What am I doing wrong?

~ Max

Cody
Telerik team
 answered on 02 Jun 2015
1 answer
113 views

We run out manual test cases in sequence, but when I create tests under a folder they are order in alpha by test case name. Is there a way to reorder the test cases themselves. I'm not talking about reordering the test script steps.

Thanks!

Cody
Telerik team
 answered on 01 Jun 2015
1 answer
144 views

The HtmlTable functionality is available in version 2015.1.528

2 requirements setup:
     * Test Studio Version 2015.1.528 
     * Project Settings -> Translators -> Html -> HtmlTbale TranslatorsI should be able to perform these steps:

I should be able to perform these steps:

     * selection of 'HtmlTable' (cannot find this ?)
     * highlight the entire table
     * select Quick Tasks, verify row count

I do not have HtmlTable available to me yet by highlight elements - is it somewhere else ?

Boyan Boev
Telerik team
 answered on 01 Jun 2015
3 answers
77 views
We have a requirement when checking in to TFS that you need to include a Work Item number. Is there any way to be able to be able to add a field during check in for the Work item?
Ivaylo
Telerik team
 answered on 01 Jun 2015
6 answers
149 views

Hi,

I'm having problem with the extraction and then parse this extraction and use it in input value field. On the site there is a table with results from which I want to pick random cell in first column and store this data (example value in cell ZVE-P5045-2892). Then I want to take last digits after the second "-" sign (example 2892) and type it in the input value field on the page. If I try the following, I get the whole value ZVE-P5045-2892 into the input field: 

1. Extract 'TextContent' on 'ZVEP50452892TableCell' into DataBindVariable $(paymentRequest)

2. Enter text 'zve-p5045-2892' in 'NumberText' - DataDriven: [$(paymentRequest)]

I know I have to use VB.NET now, but as I lack of the VB knowledge I need your help. So how could I pick a random value from cell in first column, use only last 4 digits from this value and type it in to input value field?

Thanks and BR, Jurij

Jurij
Top achievements
Rank 2
 answered on 28 May 2015
4 answers
136 views

Yo! 

I am testing a WPF application and it is crucial that I simulate front-end, user peripheral input as genuinely as possible. If I want to enter some text into some textbox, how can I do this such that it is the same as a user physically using a keyboard with the app?

I asked this question via email and was pointed to the 'Test Step Properties' section of the Test Studio documentation. I am a bit confused on how using properties like 'SimulateRealClick', 'SimulateRealTyping', and 'SimulateRealUser' can be implemented and how they are useful.

If I create a LeftClick step, is Test Studio going to perform this click using the mouse or does it invoke a click on the WPF element? 

Thanks!

Boyan Boev
Telerik team
 answered on 28 May 2015
1 answer
74 views

Hello, Telerik team!

 

I've created about 170 test. But one part of URLs was changed. For example:

was - http://rt.test.com/

is - http://qa.test.com/

 

How can I change a part of URL in all tests?

Ivaylo
Telerik team
 answered on 26 May 2015
4 answers
81 views

I see an article which describes Notification Settings (http://docs.telerik.com/teststudio/features/scheduling-test-runs/schedule-execution)

But I do not see this dialogue, and Notification Settings contains only two steps (http://screencast.com/t/ZcidqX76F), but in the article describes three steps. 

How to set up e-mail notification?

Ivaylo
Telerik team
 answered on 26 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?