Call QaDoc.CreateManagedReport() method
No parameters
Returns QaManagedReport object (e.g., myManagedReportObject = myDoc.CreateManagedReport())
Set report properties
Get QaManagedReport.XML property (e.g., reportXMLString = myManagedReportObject.XML)
Modify XML content
Set QaManagedReport.XML property (e.g., myManagedReportObject.XML = reportXMLString)
Call QaManagedReport.UpdateDatabase() method (e.g., myManagedReportObject.UpdateDatabase())
Call QaDoc.GetManagedReportsXML() to get a list of jobs
Returns XML of all defined jobs (e.g., myReportsString = myDocObject.GetManagedReportsXML())
See if job already exists
Deserialize XML (myReportsString)
Iterate and search (use name attribute to identify job)
If found
Call QaDoc.GetManagedReportByID(<reportId>)
Returns QaManagedReport object (e.g., myManagedReportObject = myDocObject.GetManagedReportByID(<reportId>))
Access QaManagedReport.XML property
Modify XML content
Set QaManagedReport.XML property
Call QaManagedReport.UpdateDatabase() method
Can we improve this topic?