You can transform binary data in tests to view the data
in a more readable format and to assist with data correlation. Binary
data in a test might contain values that must be correlated for the
test to play back properly.
Before you begin
Record a test that contains binary data.
Procedure
To transform all the binary data in a test:
- Open a test for editing.
- Click .
- In the Data Correlation and Transformation window,
select the Apply data transformation check
box.
- From the list, select a transformation to perform:
- To convert the binary data to the equivalent ASCII representation,
select the Convert To Ascii Text check box.
Characters that are not part of the readable ASCII character set are
shown as escaped hexadecimal values.
- To convert the binary serialized representation of a Java™ object into XML format, select the Convert
Java Serialized Object to XML check box. You can also
use this transformation to examine and perform data correlation on
tests against applications that use serialized Java objects.
- To transform Adobe Flex objects into XML format, select the Convert
AMF to XML check box.
- To transform the Windows Communication Foundation binary code
into XML, select the Convert Microsoft WCF-Binary to XML check
box.
All binary data in the test is transformed
by using the transformation that you specified.
- To apply built-in data correlation rules, select the Apply
corresponding data correlation rules if transformation succeeds check
box, and then click Finish.
Note: To
remove data transformation from the test, clear the check boxes in
the list of available transformers and generate the test.