cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
New Contributor

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!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

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

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 )

 

Best,
Justin Kim

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

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

Highlighted
Staff

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

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 )

 

Best,
Justin Kim

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors