Forum Discussion

thebick's avatar
thebick
Occasional Contributor
6 years ago
Solved

Create checkpoint from string

How can I create a checkpoint based on the vaue of a string?

Background:

An operation in my desktop application (among other things) creates a file consisting of data lines (a) that could be in any order, and (b) some of which could change per invocation and shouldn't be checked. So a file comparison is out. I need to be able to check the values in the files.

I want to make an actual Checkpoint (not just Log.Warning) of the comparison. But CheckProperty is a function only of aqObject, not aqString.

And I find nothing on SmartBear.com showing how I can make an aqObject from a string.

I am writing the test in Python.

So how?

5 Replies

    • sonya_m's avatar
      sonya_m
      Icon for Alumni rankAlumni

      Thank you for advice BenoitB!

       

      thebick will this approach work for you? Please let us know.

      • thebick's avatar
        thebick
        Occasional Contributor
        The data are already in a file format, and I do not have the permission to create a .json file. Can I just create an aqObject and assign the text as some property of the object? It may be possible, but I don't see anything in the documentation to indicate if it is, and if so, how to do it.