Is there any monitor test API so that I can embed it into my test software?

Thanks.