Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29748

Reading Emails based on recipient email id in Jmeter using groovy

$
0
0

I have a Jmeter script which follows the following steps 1. registers user 2. Reads email using Mail Reader Sampler which has following script

StringBuilder aggregateResult = new StringBuilder()
prev.getSubResults().each {
    aggregateResult.append(it.getResponseDataAsString())
    it.getSubResults().each {
        aggregateResult.append(it.getResponseDataAsString())
        it.getSubResults().each {
            aggregateResult.append(it.getResponseDataAsString())        
        }   
    }
}
prev.setResponseData(aggregateResult.toString().getBytes())
  1. Then extracts a particular link based on regexp.

As of now, it reads either the latest email or all the unread emails in the server. Can someone please help me to modify the above script to read the message based on the user email created at step 1? Emails are created like test+1@gmail.com, test+2@gmail.com and so on.


Viewing all articles
Browse latest Browse all 29748

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>