Forum Discussion

MichaelDillon23's avatar
MichaelDillon23
New Contributor
4 years ago
Solved

Pulling Test Summary Data out of a Test to Post to Elastic Search

Is it possible to pull Data out of a Test run to then send a Post call to Elastic Search? I am looking to build a JSON object with pass/fail test name information and then send it to a kibana board after the Test is done but haven't seen a good way to get this data while looking through the forums. Thanks in advance!

 

 

  • there is only so much test data information available to us during runtime, since we would be building the test log via log.saveresultas method during runtime. eitherway, creating a JSON object then falls under the category of external parsing of our test log (whichever format it may be in, junit xml or html). then you would take that newly created json object as your post body (which testcomplete can do in terms of making a post request  https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqhttp/index.html )

     

2 Replies