Jmeter assert json response element to be NOT NULL -


i getting json response, have parsed using jp@gc - json path extractor , got element 'access_token'. access_token dynamic. want make sure element not null.

any leads appreciated.

  1. in json path extractor provide default value, example not_found

    json path extractor

  2. add response assertion after json path extractor , configure follows:

    • apply to: jmeter variable -> access_token
    • pattern matching rules:

      • tick not
      • tick equals
    • patterns test: not_found (or whatever entered "default value" input of json path extractor)

      response assertion

see how use jmeter assertions in 3 easy steps article comprehensive information on using assertions in jmeter scripts.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -