SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2008
    Location
    Pune
    Posts
    420
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to write Defect and change status using PERL

    Hi,

    Can someone tell me how we can write new defect using PERL scripting in QC and chanage the test cases status in Test Lab tab using PERL Scripting.
    I am successfully able to conenct using PERL scripting.

    Appreciate your quick response.

    Thanks.

  2. #2
    Member
    Join Date
    Apr 2008
    Location
    Pune
    Posts
    420
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to write Defect and change status using PERL

    ANy update on this please. I am using following code snippet:-
    my $BugFactory = $Object->BugFactory();
    my $BugFilter = $BugFactory->Filter();
    my $newbug = $BugFactory->AddItem('Nothing');
    $newbug->Summary =("Defect 1") ;
    $newbug->Status = ("Open");

    Code works fine till my $newbug = $BugFactory->AddItem('Nothing');
    It is giving error for $newbug->Summary =("Defect 1") ;
    Following error is displayed;-
    Can't call method "Summary" on an undefined value

    Appreciate your response.
    Thanks.

  3. #3
    Member
    Join Date
    Apr 2008
    Location
    Pune
    Posts
    420
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to write Defect and change status using PERL

    somehow I am able to execute the code successfully, but I am unable to view any defect in QC:-
    USING FOLLOWING CODE SNIPPET:-
    my $BugFactory = $Object->BugFactory();
    my $BugFilter = $BugFactory->Filter();
    my $newbug = $Object->Bug();
    #$newbug = $BugFactory->AddItem('Nothing');
    $newbug = $BugFactory->AddItem();
    $newbug->{Summary}="Connecting to TD" ;
    $newbug->{Status} = "Open";
    $newbug->{AssignedTo} = "AAAA" ;
    $newbug->{Severity} = ("1 - High") ;
    $newbug->{Priority} = "High";
    $newbug->{DetectedinRelease} = "PROJECTNAME";
    $newbug->{SubProjectId} = "123";
    $newbug->{DateDetected} = "1/1/2012";
    $newbug->{ApplicationName} = "APPANME";
    $newbug->{ApplicationId} = "PQQQ11";
    $newbug->{PhaseDetected} = "Test";
    $newbug->{TestStage} = "TEST";
    $newbug->{DetectedBy} = "SSDDDD";
    #$newbug = $BugFactory->Post();
    $newbug->{Post}='True';

    Appreciate quick response on this please.
    Thanks.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 13.64%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:16 AM.

Copyright BetaSoft Inc.