Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Mongo DB

reactancexl
reactancexl Posts: 195

If I create a virtual asset via traffic file witch has 10 records which get stored in the Data Repository. With the responder setups, does the value have to exist in one of columns identified from the Data Store to return corresponding data?

Answers

  • williammccusker
    williammccusker Posts: 704 ✭✭✭

    Hi,

    I am not quite sure if I understand the question. When the virtual asset is created from traffic the Data Repository will be populated with the data from the traffic and the asset will be parameterized using the columns created.

    If one of the messages in the traffic didn't have a value for a specific column, then then it would have a null or empty value for that field and in the case the response would not sent the field parameterized with that column.

    So, yes, when a column is set to be null or exclude in the Data Repository the field parameterized with it won't be sent back. In the case of something created from traffic this would be the case when one respond has a field but another doesn't.

    Did that help answer your question?

  • reactancexl
    reactancexl Posts: 195

    Hi William, let me try and clarify. The columns will have values. If the column value does not exist in the data repo that is passed in on the request, I assume there would be a "virtual asset not found or responder, etc".

  • williammccusker
    williammccusker Posts: 704 ✭✭✭

    Hi,

    It sounds like you are talking about a Data Source Correlation and what happens when a value in an incoming request doesn't have a match in the Data Repository? In that case, yes, an error may be returned saying the incoming request couldn't be matched to a row.

    There are options for defining criteria expressions for regex like matching of an incoming value or wild carding a value for a column on a specific row if needed.

    Please let me know if this helped, thanks!

  • benken_parasoft
    benken_parasoft Posts: 1,365 ✭✭✭

    Parasoft IDA phrases this as:

    you’ll get no-match/empty result or whatever the responder is configured to do on no match