Object Spy Copy Properties to Clipboard

  • Questions
  • Object Spy Copy Properties to Clipboard
Question ID: 106765
0
0

When using object spy to get object properties and then copying the properties to the clipboard, there are escape characters left in the individual properties in front of special characters.

We tried copying to Notepad++, Notepad and Word and the escape characters were still there.

Individual lines can be copied manually with no escape characters, so I’m guessing it’s the Copy to Clipboard function that has the bug.

Marked as spam
Posted by (Questions: 22, Answers: 6)
Asked on April 19, 2016 9:14 pm
22 views
Answers (1)
0
Private answer

Using the copy button on the Object Spy copies Programmatic Description Data from the Object Spy. Programmatic Description Objects by default, the value of all Property objects added to a Properties collection are treated as regular expressions. Therefore, if you want to enter a value that contains a special regular expression character (such as *, ?, +), use the (backslash) character to instruct UFT to treat the special characters as literal characters. For details on regular expressions, see ''Regular Expressions Overview'' on page 319.

Conculsion: HP has designed this as a feature and is not considered a bug or defect.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on April 19, 2016 9:14 pm