Hi Monks,
I was using perl module Rcs for Revision Control System.In that i was using an method to retrive all my versions of Testcases.
Output of that method ismy @all_testcase_versions=$rcsObj->revisions; print "All Testcase Versions:@all_testcase_versions\n";
In that Module i was trying to get the file by giving versions as inputAll Testcase Versions:1.4 1.3 1.2 1.1
But this Functionality was not present in Rcs.pm,so i tried to parse that using Rcs::Parser Module.To retrieve a specific version my $specific_version = $rcsObj->get('1.2');
But there was no RCS.pm module,but they have used asmy $rcs = new RCS; my $ret = $rcs->load($filename); my $specific_version = $rcs->get('1.2');
Failed to retrieve revision info of test case - TC00631.xml due to sys +tem error: Can't locate object method "load" via package "Rcs" line 1 +514.
But i am not getting any Output.my $rcs = Rcs::Parser->new; my $ret = $rcs->load($rcstestcasename); my $specific_version = $rcs->get('1.2');
My Code iscat TC00631.xml,v gives, 1.2 log @Auto checked in by Portal @
Can any one help in this regard.use Rcs; #use RCS; use Rcs::Parser; # create a Rcs instance for the test case's revision info my $rcsObj = Rcs->new; $rcsObj->rcsdir(dirname($rcsDir)); $rcsObj->workdir(dirname($rcsDir)); $rcsObj->file($testCaseName); my $rcstestcasename=$rcsObj->file($testCaseName); print "FileName:$rcstestcasename\n"; # abstract interesting revision info my @all_testcase_versions=$rcsObj->revisions; print "All Testcase Versions:@all_testcase_versions\n"; my $rcs = Rcs::Parser->new; my $ret = $rcs->load($rcstestcasename); my $specific_version = $rcs->get('1.2'); print "1.2version:$specific_version\n"; }; # end of eval
20060726 Janitored by Corion: Removed PRE tags, as per Writeup Formatting Tips
In reply to Can any one help to correct the error which i got while using Rcs.pm in the Code by srins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |