⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 staf.pl

📁 Software Testing Automation Framework (STAF)的开发代码
💻 PL
字号:
#!/usr/bin/perl############################################################################## Software Testing Automation Framework (STAF)                              ## (C) Copyright IBM Corp. 2001                                              ##                                                                           ## This software is licensed under the Common Public License (CPL) V1.0.     #############################################################################################################################################################use PLSTAF;use strict;###############################################################################&main; ###############################################################################sub main{    if ($#ARGV != 2)    {        print "Usage: STAF.pl <TCPIP hostname | local> <Service> <Request>\n";        return;    }    my $rc = STAF::Register("STAF/Client/Perl");    if ($rc != 0)    {        die "Error registering with STAF: RC = $STAF::RC\n";    }    $rc = STAF::Submit($ARGV[0], $ARGV[1], $ARGV[2]);    if ($rc != 0)    {        print "Error submitting request: RC = $STAF::RC\n".              "Additional info: $STAF::Result\n";        STAF::UnRegister();        return;    }    print "Response\n";    print "--------\n";    print "$STAF::Result\n";      $rc = STAF::UnRegister();    if ($rc != 0)    {        die "Error unregistering with STAF: RC = $STAF::RC\n";    }}###############################################################################

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -