clarisahuang 发表于 2012-12-3 21:35:11

LR11在Replay时识别不到窗口名,"Window or object is not displayed"

本帖最后由 clarisahuang 于 2012-12-4 10:30 编辑

首次使用LR,LR11+EBS R12,录制创建采购订单的脚本回放报错,协议用的是Oracle Web Application11i

脚本是:
Action()
{

        nca_obj_type("PO_HEADERS_OPERATING_UNIT_0", '\t', 0);

        nca_obj_type("PO_HEADERS_DOC_TYPE_NAME_0", '\t', 0);

Replay Log里写:
Starting action Action.
Action.c(4): Checking for active timers...
Action.c(4):   No timers found, exiting.
Action.c(4): Error: nca_obj_type("PO_HEADERS_OPERATING_UNIT_0") failed, Window or object is not displayed.
The window currently in focus: "Error".
The last popup/alert message received: "stop - Cannot complete applications logon. You may have entered an invalid applications password, or there may have been a database connect error."
Abort was called from an action.

Generation Log里写:
Event Matching Error: IN Event left without an OUT event at the end of recording

URL地址后面加了record=names,Oracle配置文件ICX: Forms Launchers里也加了play=&record=names,Recording Options按不同的组合录了好多次,报的错是一样的。

也试过在vuser_init部分加了 icx_ticket 的correlation,但那样干脆就过不了server connection了,而且会报另一个exception的错,不知是不是我语句写错了,也一并贴出来:
        web_reg_save_param("icx_ticket",
                                           "LB=ticket=",
                                           "RB=resp",
                                           LAST);

        nca_connect_server("lh.ebs.com", "8000", "module=/d01/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/forms/US/FNDSCSGN fndnam=APPS record=namesconfig='PROD' icx_ticket={icx_ticket} resp='PO/LH_PO' secgrp='STANDARD' start_func='PO_POXPOEPO' other_params=''::NLS_LANG='AMERICAN_AMERICA' FORMS_USER_DATE_FORMAT='DD-MON-RRRR' FORMS_USER_DATETIME_FORMAT='DD-MON-RRRR HH24:MI:SS' NLS_DATE_LANGUAGE='AMERICAN' NLS_SORT='BINARY' NLS_NUMERIC_CHARACTERS='.,'");

作为新手表示从来没学过C语言,实在是不知道问题出在哪里了,求大家帮忙,谢谢!

PS. 我不太清楚我的这套oracle是用什么什么模式通信的,看到有说法说如果url上有OA_HTML就是socket mode,要用Oracle NCA协议,是这样的吗?那岂不是就是多协议了?

clarisahuang 发表于 2012-12-4 10:28:02

换了Oracle NCA+Web (HTTP)的多协议来测,只做了{NCAJServSessionId}的correlation
依然在进入oracle的form界面后就开始报obj not found的错,这次LR提醒说可能是dynamic value没做correlation
但加上 icx_ticket 的又说找不到这个参数
我现在是彻底茫了……

clarisahuang 发表于 2012-12-4 13:31:58

就没人碰到过这个问题吗?
页: [1]
查看完整版本: LR11在Replay时识别不到窗口名,"Window or object is not displayed"