#
#_Test Case: Validating login to an application.
#
#_Version: 2.0
#
#_Author: Testing Garage
#
#_Description: Login to application with user names and password present in Data Table. The application name present in the below script is for an example. The respective AUT will have its unique name, while writing the script. AUT, is the abbreviation for Application Under Test.
CONNECT 'Quality' # establishing a connecting to the machine (agent).
DECLARE STRING @A, @B
DECLARE INTEGER @i, @len
@len = TableGetLen("E:\smokeTestScripts\userdetalis.DTB")
FOR @i = 1 TO @len
@a= TableGetValue("userdetalis.DTB", "userid", @i)
ECHO "ID is",@a
@B= TableGetValue("userdetalis.DTB", "password", @i)
ECHO "PW is",@B
WinSetActive ('TL_AUT')
WinMouseClick ('TL_AUT', 279, 460)
WinSetFocus ('TL_AUT')
PLAY KEYS @A
WinMouseClick ('TL_AUT', 282, 488)
PLAY KEYS @b
WinMouseClick ('TL_AUT', 248, 588)
WAIT 20
PLAY KEYS ' x'
WinMouseClick ('TL_AUT_administrator', 18, 33)
WinMouseClick ('SunAwtCanvas', 28, 28)
PLAY KEYS ""
NEXT @i
#_Test Case: Validating login to an application.
#
#_Version: 2.0
#
#_Author: Testing Garage
#
#_Description: Login to application with user names and password present in Data Table. The application name present in the below script is for an example. The respective AUT will have its unique name, while writing the script. AUT, is the abbreviation for Application Under Test.
CONNECT 'Quality' # establishing a connecting to the machine (agent).
DECLARE STRING @A, @B
DECLARE INTEGER @i, @len
@len = TableGetLen("E:\smokeTestScripts\userdetalis.DTB")
FOR @i = 1 TO @len
@a= TableGetValue("userdetalis.DTB", "userid", @i)
ECHO "ID is",@a
@B= TableGetValue("userdetalis.DTB", "password", @i)
ECHO "PW is",@B
WinSetActive ('TL_AUT')
WinMouseClick ('TL_AUT', 279, 460)
WinSetFocus ('TL_AUT')
PLAY KEYS @A
WinMouseClick ('TL_AUT', 282, 488)
PLAY KEYS @b
WinMouseClick ('TL_AUT', 248, 588)
WAIT 20
WinSetActive ('TL_AUT_administrator')
WinSetFocus ('TL_AUT_administrator')PLAY KEYS ' x'
WinMouseClick ('TL_AUT_administrator', 18, 33)
WinMouseClick ('SunAwtCanvas', 28, 28)
PLAY KEYS "
NEXT @i