CQProductInfo オブジェクトには、製品バージョン、ライセンス バージョン、会社情報などの Rational ClearQuest 製品情報が用意されています。
CQProductInfo メソッドは、製品情報とその現在のビルドを識別する情報を戻します。CQProductInfo のメソッドを使用すると、以下のような情報を取得できます。
CQProductInfo オブジェクトを作成するには、Rational ClearQuest オブジェクトの CreateProductInfo メソッドを使用します。例を次に示します。
use CQPerlExt; my $cqobject = CQSession::Build(); my $prodinfo = $cqobject->GetProductInfo(); print $prodinfo->GetProductVersion(),"¥n"; CQSession::Unbuild($cqobject);
また、Rational ClearQuest セッションを作成しないで、CQProductInfo メソッドを Perl から直接作成することもできます。
use CQPerlExt; print CQProdInfo::GetProductVersion(),"¥n";