Decrypting data to be used in Soap request
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 to use groovy script or any other process that will decrypt the data before the XML request is run and keep the data not visible in raw request .
Can anyone help me with the process or script in full.
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi ,
Java script been used for encrypting.. and then copied to the spreadsheet manually ..
public class Encrypter
{
public static void main(String[] args)
{
System.out.println("EncryptedValue:"+EncryptDecrypt.encrypt("Password01"));
}
}
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
Can anyone Please assist with the issue...
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One of the conditions you gave is to have the data decrypted and NOT visible in the raw request. Unfortunately, as far as I know, you will not be able to get around that. The raw request is going to show the data sent, which would be the decrypted data.
---
Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for your response ... if it cant be hidden in Raw response that is fine as of now , we can find a solution later .. can you please assist with the script to encrypt and make the request return response.
thanks in advance .
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Excel Data Source: This will be used to read in and loop through the encrypted data in the spreadsheet.
- Groovy Data Source: This will be used to decrypt the data.
- Test Request This is the request that will reference the decrypted data
- 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!
---
Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
