File: test6.py

package info (click to toggle)
mysql-gui-tools 5.0r12-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 105,540 kB
  • ctags: 50,897
  • sloc: sql: 348,439; pascal: 285,780; cpp: 94,578; ansic: 90,768; objc: 33,761; sh: 25,629; xml: 10,924; yacc: 10,755; java: 9,986; php: 2,806; python: 2,068; makefile: 1,945; perl: 3
file content (33 lines) | stat: -rw-r--r-- 1,172 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Name: 9866_username_16_char_limit
# Target: windows
##

MyConnect({"user":"root","host":"localhost"})

#ClickObject(PATH("ConnectToInstanceForm.ConnectToHostPnl"), offset=(0, 56))
#Delay(2)
#Key(Return)
#Delay(2)

ClickObject(PATH("MainForm.SidebarPnl.AdminTreeView"), offset=(81, 83))
Delay(2)
ClickObject(PATH("MainForm.DockPnl.UserPnl.Panel3.BottomBtnPnl.NewUserBtn"), offset=(54, 8))
Delay(2)
Type('n0123456789012345')
Delay(2)
ClickObject(PATH("MainForm.DockPnl.UserPnl.Panel3.BottomBtnPnl.ApplyChangesBtn"), offset=(57, 12))
Delay(2)
#ClickObject(PATH("TMyxModalDialog_01D351F0.TTntButton_01DDA630"), offset=(13, 14))
Key(Tab)
Delay(2)
Key(Return)
#ClickObject(PATH("TMyxModalDialog_01D351F0.TTntButton_01DDA630"), offset=(25, 12))
Delay(2)
ClickObject(PATH("MainForm.DockPnl.UserPnl.UserPageControl.UserInfoSheet.UserInfoScrollBox.UserInfoLoginGBox"), offset=(217, 33))
Delay(2)
Key(BackSpace)
Delay(2)
ClickObject(PATH("MainForm.DockPnl.UserPnl.Panel3.BottomBtnPnl.ApplyChangesBtn"), offset=(17, 7))

CheckDBQuery("select count(*) from mysql.user where User = 'N012345678901234'", [[1]]) 
MyQuery("drop user 'N012345678901234'")