cancel
Showing results for 
Search instead for 
Did you mean: 

Needed a Regular Expression releted help

SOLVED
Occasional Visitor

Needed a Regular Expression releted help

Hey guys,

 

i have a line like below

 

"var referenceDial3=Aliases.OpenSiteDesigner.wndMStnChild3;"

 

and the value "3" is a number which is always keeps changing, rest remains same,

i want that number to be any number...

so is there any regular expression which might help?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Needed a Regular Expression releted help

Hi,

 

i have a line like below

Is the line a string indeed or this is a regular line of code that assigns a value to the variable and you enclosed it in quotes just for the sake of readability?

For now I assume the latter.

 

and the value "3" is a number which is always keeps changing

I assume that you meant "3" for wndMStnChild3, not for referenceDial3.

 

Do you have automatic NameMapping for your project turned on (Tools|Options|Engines|Name Mapping->Map object names automatically) ?

If yes, can you let us know how wndMStnChild3 (and also wndMStnChild, wndMStnChild1, wndMStnChild2) are mapped in the NameMapping editor?

 

Assuming I was correct with all my guesses for above, I would recommend you to make NameMapping identification parameters for the wndMStnChild control to be unique and stable to stop TestComplete to try to create new mappings for the same control.

 

P.S. https://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/ webinar from the https://support.smartbear.com/screencasts/testcomplete/ page might appear to be useful.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

Re: Needed a Regular Expression releted help

Hi,

 

i have a line like below

Is the line a string indeed or this is a regular line of code that assigns a value to the variable and you enclosed it in quotes just for the sake of readability?

For now I assume the latter.

 

and the value "3" is a number which is always keeps changing

I assume that you meant "3" for wndMStnChild3, not for referenceDial3.

 

Do you have automatic NameMapping for your project turned on (Tools|Options|Engines|Name Mapping->Map object names automatically) ?

If yes, can you let us know how wndMStnChild3 (and also wndMStnChild, wndMStnChild1, wndMStnChild2) are mapped in the NameMapping editor?

 

Assuming I was correct with all my guesses for above, I would recommend you to make NameMapping identification parameters for the wndMStnChild control to be unique and stable to stop TestComplete to try to create new mappings for the same control.

 

P.S. https://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/ webinar from the https://support.smartbear.com/screencasts/testcomplete/ page might appear to be useful.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================

View solution in original post

Highlighted
Community Manager

Re: Needed a Regular Expression releted help

Thank you Alex!

 

Hi @DipakGudge, have you tried Alex's suggestions? Please let us know.


Sonya Mihaljova
Community and Education Specialist

 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!