java - 如何在 LoadRunner SAP GUI 协议(protocol)中添加文本检查以验证 sapgui_status_bar_get_text

标签 java loadrunner sap-gui

请参阅下面我在录制过程中得到的代码

sapgui_status_bar_get_text("paramStatusBarText", 
    BEGIN_OPTIONAL, 
        "Recorded status bar text: Transfer order 0126994069 created", 
        "AdditionalInfo=sapgui7032", 
    END_OPTIONAL);

最佳答案

我使用C代码如下:

int compare_results;


compare_results = strcmp(lr_eval_string("{MyParam}"),"<expected string>");

if( compare_results == 0 )
          lr_output_message("PASSED");
   else
         lr_error_message ("FAILED");

关于java - 如何在 LoadRunner SAP GUI 协议(protocol)中添加文本检查以验证 sapgui_status_bar_get_text,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58948961/

相关文章:

Java 输出流 : Download Multiple Files

c - LoadRunner:如何创建 DLL 以使用 "web_reg_save_param"函数

excel - 无法绕过 SAP GUI 连接中的运行时错误 619

excel - 在 Excel VBA 中禁用 SAP 登录弹出窗口

java - 如何分离 Hibernate 对象的持久属性

Java SQL 需要 6 个字节并收到 0 个错误

java - 如何使用此代码在 RandomAccessFile 中搜索字符串?

performance - token ID 及其脚本

相关值未将自定义字符串捕获为左边界

vbscript - "connection.Children(0)"触发 "The enumerator of the collection cannot find en element with the specified index."