Need Help Creating QC release with Groovy
Hi all, I am not able to create a release in QC with Groovy I have created a release folder, but get errors when I try to add a release to that folder. All examples that I have seen are VB which is listed below: Groovy will not allow me to pass 'null' when adding an item. // Creates the release Folder Set oReleaseFolderFactory = tdc.ReleaseFolderFactory Set rootReleaseFolder = oReleaseFolderFactory.Root Set oReleaseFolderFactory = rootReleaseFolder.ReleaseFolderFactory Set relFolder = oReleaseFolderFactory.AddItem(Null) relFolder.Name = "Release Folder 1" relFolder.Post // Creates the Release Set relFac = relFolder.ReleaseFactory Set rel = relFac.AddItem(Null) rel.Name = "Release 1" rel.StartDate = DateTime.Now rel.EndDate = DateTime.Now + 90 rel.Post The work around for Adding a folder is by passing the parent folder ID along with the name, but I am still unable to figure out a way to create a release. My code is below and the folderID is the Parent ID of the Folder that I want to place the release in. According to QC's OTA documentation, I should be able to pass Null(which doesnt work with groovy) or Parent folderID. I keep getting the error, 'Description: Failed to Post Simple Key Entity' // MY - Create the release relFactory = folder.ReleaseFactory release = relFactory.AddItem(folderID) release.Name = "Sprint 51" release.StartDate = DateTime.Now release.EndDate = DateTime.Now + 90 release.Post()1.2KViews0likes2CommentsI need help with QC Defect Creation via Groovy in SOAPUI
According to the OTA API reference to create a defect using BugFactory Object Visual Basic Public Function AddItem( _ ByVal ItemData As Variant _ ) As Object ItemData When creating defects, always pass Null as the ItemData argument. The VB example is below, and I am looking for a way to do this in Groovy, but when using 'null', I get an error. Set Bug1 = BugF.AddItem(Null) Bug1.Summary = "Lydia Bennet is 15 years old." Bug1.Status = "New" Bug1.Priority = "3-High" Bug1.Field("BG_SEVERITY") = "3-High" Bug1.DetectedBy = c_qcUser Bug1.Field("BG_DETECTION_DATE") = Date Bug1.Post Error: com.jacob.com.ComFailException: Invoke of: 3 Source: Description:1KViews0likes1Comment