MainForm.dfm 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. object frmMain: TfrmMain
  2. Left = 321
  3. Top = 179
  4. Width = 356
  5. Height = 490
  6. Caption = 'Indy Base Client'
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'MS Sans Serif'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. Position = poDesktopCenter
  15. OnCreate = FormCreate
  16. OnDestroy = FormDestroy
  17. PixelsPerInch = 96
  18. TextHeight = 13
  19. object Bevel1: TBevel
  20. Left = 0
  21. Top = 117
  22. Width = 348
  23. Height = 116
  24. Align = alTop
  25. end
  26. object Label1: TLabel
  27. Left = 0
  28. Top = 0
  29. Width = 348
  30. Height = 117
  31. Align = alTop
  32. Caption =
  33. 'This is nothing more then an example of a test client. I would ' +
  34. 'suggest that you create your own client application and use thre' +
  35. 'ading to do load testing from a simple client such as this. For' +
  36. ' example this client will connect and disconnect to/from a serve' +
  37. 'r with threads. If you wanted the client to run some test cases' +
  38. ' for you then you should add in those test cases in the appropri' +
  39. 'ate spots on the Client component. Each thread creates a duplic' +
  40. 'ate of this component.'
  41. Font.Charset = DEFAULT_CHARSET
  42. Font.Color = clRed
  43. Font.Height = -11
  44. Font.Name = 'MS Sans Serif'
  45. Font.Style = [fsBold]
  46. ParentFont = False
  47. WordWrap = True
  48. end
  49. object Label2: TLabel
  50. Left = 8
  51. Top = 120
  52. Width = 25
  53. Height = 13
  54. Caption = 'Host:'
  55. end
  56. object Label3: TLabel
  57. Left = 8
  58. Top = 160
  59. Width = 22
  60. Height = 13
  61. Caption = 'Port:'
  62. end
  63. object Label4: TLabel
  64. Left = 144
  65. Top = 120
  66. Width = 68
  67. Height = 13
  68. Caption = 'Thread Count:'
  69. end
  70. object lblConCons: TLabel
  71. Left = 144
  72. Top = 163
  73. Width = 196
  74. Height = 13
  75. Alignment = taRightJustify
  76. AutoSize = False
  77. Caption = 'Current Concurrent Connections: 0'
  78. end
  79. object lblMaxCons: TLabel
  80. Left = 144
  81. Top = 179
  82. Width = 196
  83. Height = 13
  84. Alignment = taRightJustify
  85. AutoSize = False
  86. Caption = 'lblMaxCons'
  87. end
  88. object lblTotalCons: TLabel
  89. Left = 144
  90. Top = 195
  91. Width = 196
  92. Height = 13
  93. Alignment = taRightJustify
  94. AutoSize = False
  95. Caption = 'lblTotalCons'
  96. end
  97. object Button1: TButton
  98. Left = 8
  99. Top = 200
  100. Width = 75
  101. Height = 25
  102. Caption = 'Connect'
  103. TabOrder = 0
  104. OnClick = Button1Click
  105. end
  106. object edHost: TEdit
  107. Left = 8
  108. Top = 136
  109. Width = 121
  110. Height = 21
  111. TabOrder = 1
  112. Text = 'localhost'
  113. end
  114. object edPort: TEdit
  115. Left = 8
  116. Top = 176
  117. Width = 121
  118. Height = 21
  119. TabOrder = 2
  120. Text = '8800'
  121. OnKeyPress = edPortKeyPress
  122. end
  123. object edThreads: TEdit
  124. Left = 144
  125. Top = 136
  126. Width = 121
  127. Height = 21
  128. TabOrder = 3
  129. Text = '1'
  130. OnChange = edThreadsChange
  131. OnKeyPress = edThreadsKeyPress
  132. end
  133. object lvStatus: TListView
  134. Left = 0
  135. Top = 233
  136. Width = 348
  137. Height = 223
  138. Align = alClient
  139. Columns = <
  140. item
  141. Caption = 'Thread Number'
  142. Width = 100
  143. end
  144. item
  145. Caption = 'Thread State'
  146. Width = 200
  147. end>
  148. TabOrder = 4
  149. ViewStyle = vsReport
  150. end
  151. object SampleClient: TIdTCPClient
  152. OnDisconnected = SampleClientDisconnected
  153. OnWork = SampleClientWork
  154. ConnectTimeout = 0
  155. Host = 'localhost'
  156. IPVersion = Id_IPv4
  157. OnConnected = SampleClientConnected
  158. Port = 8800
  159. ReadTimeout = -1
  160. Left = 80
  161. Top = 200
  162. end
  163. object IdAntiFreeze1: TIdAntiFreeze
  164. Left = 112
  165. Top = 200
  166. end
  167. end