Forum Discussion

bidisha's avatar
New Contributor
7 years ago

Decrypting data to be used in Soap request

Hi All,  I am new to Ready API and trying to do following . I have a auto test suit set up in Ready API which reads input data from data sheet where data is been encrypted . so what I need to do is...
  • groovyguy's avatar
    7 years ago

    So you have a piece of code that encrypts the data. You will have to use a groovy script to utilize the appropriate decryption technique to decrypt the data. We cannot help with that, since we do not know the encryption algorithm used. You may have to get the decryption algorithm from whoever set up the encryption code.


    Once you have that, what I would do is to set up a test case similar to this:

    1. Excel Data Source: This will be used to read in and loop through the encrypted data in the spreadsheet.
    2. Groovy Data Source: This will be used to decrypt the data.
    3. Test Request This is the request that will reference the decrypted data
    4. DataSource Loop: This will use the ExcelDataSource as the Data Source provider, and the target test step would be the Groovy Data Source.


    Hope that helps!