mardi 6 novembre 2018

Jmeter trigger http request after another http request is succesful. Concurrent requests with condition

I have 2 thread groups 
Thread group1: 
    csv data set configure
        {
                loop through the csv file(CSVFile.csv) that contain fileNames of json data to post
                eg: CSVFile.csv
                                file1.json
                                file2.json
                                .....so on
        }
        http request (That posts the data to rest api) (lets call it POST request)
        {
                extracts data from each json file and put it in http body and post to rest api
                eg:
                        extract data from file1.json and post
        }
                jsr223 post processor
                {
                        extracting data from above http responce and saving it to a file
                }
        
Thread group2:
        csv data configure
        {
                reads data from csv file
        }
        http request (Perform GET operation on rest api) (lets call it GET request)
        {
                eg:
                GET ip:port/searchParameter=value
        }
        

Now the problem is how to trigger thread group2 every time a iteration of http request of thread group1 is complete and go for iteration 2 without waiting for thread group2 to complete.

eg:
POST request -> file1.json  completion should trigger GET request
As the GET request continues to execute
POST request -> file2.json should be excuted concurrently 

CAN I DO THIS?

Aucun commentaire:

Enregistrer un commentaire