www.softwaretestforum.dk Forum Index www.softwaretestforum.dk
Virtuelle netværks forum for dem som arbejder professionelt med QA og software test
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Opret en defect med et XP-Vapi script i VB script

 
Post new topic   Reply to topic    www.softwaretestforum.dk Forum Index -> Quality Center
View previous topic :: View next topic  
Author Message
Christian Nørlyng
Bruger på niveau 2
Bruger på niveau 2


Joined: 30 Aug 2008
Posts: 18
Location: København

PostPosted: Mon Feb 22, 2010 2:11 pm    Post subject: Opret en defect med et XP-Vapi script i VB script Reply with quote

Her en lille sniplet, der opretter en defect via XP-Vapi scritps i QC.

Kald denne sum, inde i din main i dit test XP-Vapi script, hvor du samtidig sætter testens status til "Failed", Eller hvor du eller er sikker på du ønsker at oprette en defect!



-----------------------------------------
Sub MyAddDefect()
'Get the IBugFactory Not Used in QC
'Set BugFactory = TDConnection.BugFactory

'Add a new empty bug
Set Bug = BugFactory.AddItem (Nothing)

'fill the bug with relevant parameters
Bug.Status = "New"
Bug.Summary = "AutoTest:" & Summery


'Bug.SEVERITY = "1-Low" ' depends on the DB
Bug.Priority = "4-Very High" ' depends on the DB
Bug.AssignedTo = "UserInitials" ' user that must exist in the DB's users list
Bug.DetectedBy = "UserInitials" ' user that must exist in the DB's users list

Bug.field("BG_DESCRIPTION") = " This is a test entry from an automated test into description field"
Bug.field( "BG_DEV_COMMENTS") = " This is a comment text! "
Bug.Post

' Bug.Mail "UserInitials@domain.dk"UserInitials@domain.dk", 1, Bug.Summary, "Det er helt galt - Det går aldrig godt!"
End Sub
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.softwaretestforum.dk Forum Index -> Quality Center All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group