AnsweredAssumed Answered

How I compare a single valued variable with a multivalued context variable

Question asked by karpa08 Employee on Apr 5, 2017
Latest reply on Apr 11, 2017 by karpa08

Hello everyone,

 

I am relatively new to the API world so I hope my question won't be trivial.

 

I want to compare a single valued variable with a multivalued context variable (table) that is being created after I perform a JDBC query. (column from a database). The idea is to compare the credentials inserted from the user with the list of authorized credentials that are being stored in the database that is called through MySQL queries.

 

The 'Compare Assertion' gives the chance to use all values of the variable that we take as basis, but not the opposite (at least to my understanding).

 

I can do it manually by writing multiple assertions specifying single valued variables from the JDBC query, but this has big limitations as you to pre-specify the number of variables.

 

Any help appreciated!

 

Thanks in advance.

Outcomes