This site requires JavaScript to be enabled
IE BUMPER

Product
Version
IncidentLookup using list
Language
How can we help?

Solution Suggestions

Please enter your question to get suggestions.
  Help
IE BUMPER
Categories
Boolean Operators
OR or vertical bar symbol (|)
Finds a match if either the terms exist in a document (a union using sets).
AND
Finds a match if both terms exist in a document (an intersection of sets).
NOT, minus (-), or exclamation point (!)
Excludes documents that contain the term after NOT (a difference of sets).
Wildcards
Asterisk (*)
The asterisk symbol performs a multi character wildcard search.
Percent sign (%)
The percent sign performs a single character wildcard search.
Phrases
Quotation marks (")
Use quotation marks to search for an exact phrase with multiple terms.
For examples and more information look at our Knowledge Base: Advanced Search On The Support Portal

TBox escaping

 

Short Summary


Situation

If your test data contains one or more of the characters {, }, [, ] and ", they have to be escaped in order for TBox to treat them as regular string-values.
This is because these characters are used in the syntax for dynamic values.

Solution

In order to escape a string follow these two steps :

  1. Enclose the part of the string you want to escape with " at the front and back.
  2. If the part of the string you want to escape contains " you need to double those.

Examples

 

Value to be sent to/verified in app under testI've turned the moon into what I like to call a "Death Star"

Value in Tosca"I've turned the moon into what I like to call a ""Death Star"""

Alternative value in ToscaI've turned the moon into what I like to call a """Death Star"""

 

 

 

Value to be sent to/verified in app under testemail[at]address.com

Value in Tosca"email[at]address.com"

Alternative value in Toscaemail"[at]"address.com

Alternative value in Toscaemail"["at"]"address.com

0 0

Olav Adema

Created: 2017-11-22 15:03:42

I struggled a bit with this today: for dropdown values which need to be filled into an combobox it requires a few extra  escapes on Tosca 10.3

If you would like to enter 'a 8" pipe' you will need to put 'a 8"""" pipe' as the value otherwise it can not find the item or tosca is saying it's not escaped correctly

1 0

Mario Schelch

Created: 2017-12-29 13:55:25 , Updates: 3, Last Update: 2018-01-05 10:59:25

Here is another XTestStepValue value example of a commandline call that uses a TCP "TestArtefactsDirPath" containing a part of a directory path with spaces.

Value: 

   C:\Windows\system32\certutil.exe -p 1234 -importPFX """"{CP[TestArtefactsDirPath]}"\Certs\test_cert.pfx"""

Translated Value:

   C:\Windows\system32\certutil.exe -p 1234 -importPFX "C:\Test Artefacts\Certs\test_cert.pfx"

Explanation:

Two aspects of escaping have to be considered:

  1. Masking the quotes in order to have them present in the string: """
  2. Masking the braces of the dynamic TCP value in order to get this dynamic expression translated: "{CP[TestArtefactsDirPath]}"