Atributeregex comparing to textfield fails.

Ranorex Spy, Recorder, and Studio.
topcatalpha
Posts: 47
Joined: Tue Sep 06, 2011 7:48 am

Atributeregex comparing to textfield fails.

Post by topcatalpha » Thu Oct 18, 2012 1:58 pm

Atributeregex comparing to textfield fails when i have a large text and the value to compare is at the end of the text. It seems the text value is not completely the same as the value in the software to test. Is it possible i cuts the value at a certain point ?

how can i compare my text with a large text in a textbox from a windows app ?

i tried with a partial text (somewhere) at the beginning of the software and that did work.

regards,

Kurt

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Atributeregex comparing to textfield fails.

Post by Support Team » Fri Oct 19, 2012 10:37 am

Hi,

Yes it should be possible with regular expressions.
In order to analyze the issue could you send us a Ranorex Snapshot file of the textbox and the specific text?
How do you have tried to compare it, could you send us the code you used?
Following link will show you how to generate a snapshot file:
Creating Ranorex Snapshot Files.

Regards,
Markus
Ranorex Support Team
.
Image

topcatalpha
Posts: 47
Joined: Tue Sep 06, 2011 7:48 am

Re: Atributeregex comparing to textfield fails.

Post by topcatalpha » Mon Oct 22, 2012 7:46 am

Herewith the snapshot file. with only a part of the text in the property window.

Also the textvalue from the editbox.

Regards,

Kurt
Attachments
UPgraderGUI.zip
(177.21 KiB) Downloaded 226 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Atributeregex comparing to textfield fails.

Post by Support Team » Mon Oct 22, 2012 3:15 pm

Hello Kurt,

There seems to be a limitation of 4096 characters in the child element from control 'textBoxDebug'.
The control itself doesn't have this limitation.

You could set/get the value of the text property of the control 'textBoxDebug'.

Regards,
Markus (T)
Support Team
.
Image

topcatalpha
Posts: 47
Joined: Tue Sep 06, 2011 7:48 am

Re: Atributeregex comparing to textfield fails.

Post by topcatalpha » Wed Oct 24, 2012 9:09 am

OK, Thx. I'll try this today.

Does it mean the recorder takes the wrong object/property when i use the validate functionality in recording mode?

Regards,

Kurt

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Atributeregex comparing to textfield fails.

Post by Support Team » Wed Oct 24, 2012 10:42 am

Hello Kurt,

The recorder takes the object that it gets from the application.
In your case, it uses a child text element of the 'textBoxDebug' control object which has a size limitation based on the technology used by your application.

Regards
Markus (T)
Ranorex Support Team
.
Image