Home > database >  Questions about PBUnit
Questions about PBUnit

Time:09-17

First use PBUnit (the requirements of the boss can't) test the following code is the following
Iw_login. Sle_1. Text='Y LAU'
Iw_login. Sle_2. Text='Y LAU'
//
//
Iw_login. Cb_1. Triggerevent (clicked!

The select LG_STATUS into: ls_lg_status from SEC_LOGIN WHERE LG_UPDATE LIKE 'Jul 9 2014% AND LG_NTID=' lhaibing ';
Enclosing the assert (' login Fail ', ls_lg_status='Fail')
An error is as follows:
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
PBUnit Test Runner Window
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Error: a test_cops_login. Test1: Error Number 7.

The Error text=Unresolvable external g_user_name when linking the reference at the line 39 clicked in the event of object cb_1 of w_login..

The Window/Menu/Object=w_login.

The Error Object/Control=cb_1.

Script=clicked.

The Line in the Script=39.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
OK
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The reason is inside the click event of use of global variables
Do a few demo found completely unable to access the global variable
Seek to reassure
20 excuse me at last

CodePudding user response:

refer to the original poster belone99 response:
first use PBUnit (can't boss asked) to test the following code is the following
Iw_login. Sle_1. Text='Y LAU'
Iw_login. Sle_2. Text='Y LAU'
//
//
Iw_login. Cb_1. Triggerevent (clicked!

The select LG_STATUS into: ls_lg_status from SEC_LOGIN WHERE LG_UPDATE LIKE 'Jul 9 2014% AND LG_NTID=' lhaibing ';
Enclosing the assert (' login Fail ', ls_lg_status='Fail')
An error is as follows:
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
PBUnit Test Runner Window
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Error: a test_cops_login. Test1: Error Number 7.

The Error text=Unresolvable external g_user_name when linking the reference at the line 39 clicked in the event of object cb_1 of w_login..

The Window/Menu/Object=w_login.

The Error Object/Control=cb_1.

Script=clicked.

The Line in the Script=39.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
OK
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The reason is inside the click event of use of global variables
Do a few demo found completely unable to access the global variable
Seek to reassure
Last 20 sorry


Test and did not find the host's problem
  • Related