51Testing 软 件 测 试 网 Accounting 用 户 组 中 的 虚 拟 测 试 者 等 待 同 步 点 。 Data Entry 和和 Sales 用 户 组 执 行 Set Up Database Application 场 景 , 然 后 等 待 同 步 点 。 当 所 有 的 虚 拟 测 试 者 到到 达 该 测 试 点 时 , 他 们 被 释 放 。 如 果果 执 行 一 个 含 有 10,000 虚 拟 测 试 者 的 测 试 , 当 所 有 的 虚 拟 测 试 者 到到 达 这 个 “ 压 力力 测 试 ” 同 步 点 时 , 他 们 被 释 放 。 在 这 个 例 子 中 : ● Accounting 组 有 2000 个 虚 拟 测 试 者 , 每 一 个 测 试 者 计 算 时 间 和和 税 额 , 暂 停 2 分 钟 , 然 后 重 新 计 算 时 间 和和 税 额 。 每 个 虚 拟 测 试 者 重 复 进 行 100 次 这 样 的 操 作 。 ● Data Entry 组 有 3000 个 虚 拟 测 试 者 , 每 一 个 测 试 者 添 加 , 删 除 , 或 者 修 改 一 个 记 录 。 每 个 虚 拟 测 试 者 重 复 进 行 100 次 这 样 的 操 作 。 ● Sales 组 有 5000 个 虚 拟 测 试 者 , 每 一 个 测 试 者 读 取 一 个 记 录 。 每 个 虚 拟 测 试 者 重 复 进 行 200 次 这 样 的 操 作 。 在 设 置 同 步 点 时 , 你 必 须 说 明 虚 拟 测 试 者 如 何 从 同 步 点 处 释 放 : ● 同 时 (Together)—— 一 次 性 释 放 所 有 的 虚 拟 测 试 者 。 指 定 一 个 重 新 开 始 的 时 间 来来 延 迟 虚 拟 测 试 者 。 例 如 , 如 果果 重 新 开 始 的 时 间 设 置 为 4 秒 , 在 虚 拟 测 试 者 到到 达 该 同 步 点 之 后 ( 或 已 经 超 时 ), 他 们 等 待 4 秒 , 然 后 全 部 被 释 放 。
51Testing 软 件 测 试 网 默 认 的 重 新 开 始 时 间 为 0, 这 意 味味 着 当 最 后 一 个 虚 拟 测 试 者 到到 达 该 同 步 点 时 , 所 有 的 虚 拟 测 试 者 立 刻刻 被 释 放 。 ● 交 错 (Staggered)—— 一 个 接 一 个 的 释 放 虚 拟 测 试 者 。 每 个 虚 拟 测 试 者 等 待 被 释 放 的 时 间 总 量 是 随 机机 选 取 的 , 并 且 在 指 定 的 最 大 和和 最 小 的 时 间 范 围 内 成 均 匀匀 分 布 。 例 如 , 如 果果 最 小 时 间 为 1 秒 , 最 大 时 间 为 10 秒 , 在 虚 拟 测 试 者 到到 达 该 同 步 点 ( 或 发 生 超 时 ) 之 后 , 每 个 虚 拟 测 试 者 在 被 释 放 之 前前 , 等 待 1 到到 4 秒 。 所 有 的 虚 拟 测 试 者 随 机机 地 分 布 在 1 和和 4 秒 之 间 。 对 于 同 步 点 的 超 时 的 时 间 被 指 定 为 ,TestManager 等 待 虚 拟 测 试 者 到到 达 该 同 步 点 的 总 时 间 。 如 果果 所 有 关 联 与 一 个 同 步 点 的 虚 拟 测 试 者 在 超 时 时 间 结 束束 时 , 没 有 到到 达 该 同 步 点 , 那 么 TestManager 释 放 任 意 的 虚 拟 测 试 者 以 等 待 。 在 第 一 个 虚 拟 测 试 者 到到 达 该 同 步 点 时 , 超 时 时 间 开 始 。 虽 然 在 一 个 超 时 之 后 到到 达 同 步 点 的 虚 拟 测 试 者 不 被 保 留 , 但 该 虚 拟 测 试 者 会 在 同 步 点 处 被 延 迟 。 例 如 , 如 果果 超 时 时 间 已 到到 达 , 且 重 新 开 始 的 时 间 为 1 秒 , 最 大 时 间 为 4 秒 , 那 么 虚 拟 测 试 者 被 延 迟 在 1 和和 4 秒 之 间 。 默 认 超 时 为 0, 这 意 味味 着 此 处 没 有 超 时 时 间 。 设 置 超 时 是 有 用 的 , 因 为 一 个 虚 拟 测 试 者 可 能 遇 到到 问 题 , 并 且 可 能 从 来来 都 没 有 到到 达 过 同 步 点 。 在 你 设 置 时 间 时 , 你 没 有 停 止 其 他 的 虚 拟 测 试 者 , 这 是 因 为 问 题 只 是 这 一 个 虚 拟 测 试 者 的 问 题 。 Suite 或 测 试 脚 本本 可 以 有 多 个 同 步 点 , 每 一 个 都 具 有 唯 一 的 名 称 。 给 定 的 同 步 点 名 称 可 以 在 多 个 测 试 脚 本本 和和 ( 或 )suites 中 被 引 用 。 为 什 么 要 使 用 同 步 点 ?(Why Use Synchronization Points?) 通 过 同 步 虚 拟 测 试 者 , 可 以 使 其 在 相 同 的 时 刻刻 执 行 相 同 的 活 动 , 可 以 使 这 些 活 动 发 生 在 测 试 中 的 一 些 特 殊 的 点 上 — 例 如 , 应 用 程 序 向 服 务 器 发 送 一 个 查查 询 时 。 测 试 脚 本本 中 的 同 步 点 常 常 和和 计 时 器 一 起 使 用 , 来来 确 定 在 定 时 活 动 上 不 同 虚 拟 测 试 者 负 载 的 影 响响 。 例 如 , 要 模 拟 数 据 检 索 上 的 虚 拟 测 试 者 的 负 载 : 1 录 制 一 个 提 交 请 求 和和 展 示 结 果果 的 测 试 脚 本本 ( 在 此 例 中 名 为 VU1) 时 , 执 行 以 下 的 活 动 : a 插 入 名 为 TestQuery 的 同 步 点 到到 测 试 脚 本本 中 b 开 始 一 个 block。 该 block 定 时 执 行 交 易 。 它 也 将 该 block 和和 计 时 器 名 称 关 联 于 执 行 此 交 易 的 模 拟 命命 令 的 名 称 。 c 提 交 查查 询 , 并 等 待 结 果果 展 现 。 d 停 止 该 block。 2 录 制 提 供 负 载 的 测 试 脚 本本 时 , 就 在 你 刚 刚 开 始 记 录 提 供 负 载 的 任 务 之 前前 , 插 入 另 一 个
- Page 1 and 2:
51Testing 软 件 测 试 网 TestM
- Page 3 and 4:
51Testing 软 件 测 试 网 与 R
- Page 5 and 6:
51Testing 软 件 测 试 网 什
- Page 7 and 8:
51Testing 软 件 测 试 网 测
- Page 9 and 10:
51Testing 软 件 测 试 网 可
- Page 11 and 12:
51Testing 软 件 测 试 网 测
- Page 13 and 14:
51Testing 软 件 测 试 网 项
- Page 15 and 16:
51Testing 软 件 测 试 网 组
- Page 17 and 18:
51Testing 软 件 测 试 网 的
- Page 19 and 20:
51Testing 软 件 测 试 网 ●
- Page 21 and 22:
51Testing 软 件 测 试 网 从 T
- Page 23 and 24:
51Testing 软 件 测 试 网 右
- Page 25 and 26:
51Testing 软 件 测 试 网 右
- Page 27 and 28:
51Testing 软 件 测 试 网 2 测
- Page 29 and 30:
51Testing 软 件 测 试 网 (Repo
- Page 31 and 32:
51Testing 软 件 测 试 网 惯
- Page 33 and 34:
51Testing 软 件 测 试 网 你
- Page 35 and 36:
51Testing 软 件 测 试 网 ●
- Page 37 and 38:
51Testing 软 件 测 试 网 测
- Page 39 and 40:
51Testing 软 件 测 试 网 Explo
- Page 41 and 42:
51Testing 软 件 测 试 网 Ratio
- Page 43 and 44:
51Testing 软 件 测 试 网 显
- Page 45 and 46:
51Testing 软 件 测 试 网 文
- Page 47 and 48:
51Testing 软 件 测 试 网 当
- Page 49 and 50:
51Testing 软 件 测 试 网 ●
- Page 51 and 52:
51Testing 软 件 测 试 网 指
- Page 53 and 54:
51Testing 软 件 测 试 网 解
- Page 55 and 56:
51Testing 软 件 测 试 网 自
- Page 57 and 58:
51Testing 软 件 测 试 网 定
- Page 59 and 60:
51Testing 软 件 测 试 网 和
- Page 61 and 62:
51Testing 软 件 测 试 网 状
- Page 63 and 64:
51Testing 软 件 测 试 网 一
- Page 65 and 66:
51Testing 软 件 测 试 网 过
- Page 67 and 68:
51Testing 软 件 测 试 网 注
- Page 69 and 70:
51Testing 软 件 测 试 网 有
- Page 71 and 72:
51Testing 软 件 测 试 网 在
- Page 73 and 74:
51Testing 软 件 测 试 网 有
- Page 75 and 76:
51Testing 软 件 测 试 网 编
- Page 77 and 78:
51Testing 软 件 测 试 网 针
- Page 79 and 80:
51Testing 软 件 测 试 网 ●VU
- Page 81 and 82:
51Testing 软 件 测 试 网 限
- Page 83 and 84:
51Testing 软 件 测 试 网 要
- Page 85 and 86:
51Testing 软 件 测 试 网 5 测
- Page 87 and 88:
51Testing 软 件 测 试 网 当
- Page 89 and 90:
51Testing 软 件 测 试 网 查
- Page 91 and 92:
51Testing 软 件 测 试 网 ●
- Page 93 and 94:
51Testing 软 件 测 试 网 通
- Page 95 and 96:
51Testing 软 件 测 试 网 ●
- Page 97 and 98:
51Testing 软 件 测 试 网 一
- Page 99 and 100:
51Testing 软 件 测 试 网 如
- Page 101 and 102:
51Testing 软 件 测 试 网 user
- Page 103 and 104:
51Testing 软 件 测 试 网 通
- Page 105 and 106:
51Testing 软 件 测 试 网 Suite
- Page 107 and 108:
51Testing 软 件 测 试 网 ●HT
- Page 109 and 110:
51Testing 软 件 测 试 网 下
- Page 111 and 112:
51Testing 软 件 测 试 网 有
- Page 113 and 114:
51Testing 软 件 测 试 网 对
- Page 115 and 116:
51Testing 软 件 测 试 网 1 在
- Page 117 and 118:
51Testing 软 件 测 试 网 各
- Page 119 and 120:
51Testing 软 件 测 试 网 变
- Page 121 and 122:
51Testing 软 件 测 试 网 在
- Page 123 and 124:
51Testing 软 件 测 试 网 6 测
- Page 125 and 126:
51Testing 软 件 测 试 网 你
- Page 127 and 128:
51Testing 软 件 测 试 网 现
- Page 129 and 130:
51Testing 软 件 测 试 网 TestM
- Page 131 and 132:
51Testing 软 件 测 试 网 注
- Page 133 and 134:
51Testing 软 件 测 试 网 有
- Page 135 and 136:
51Testing 软 件 测 试 网 Multi
- Page 137 and 138:
51Testing 软 件 测 试 网 2 点
- Page 139 and 140:
51Testing 软 件 测 试 网 比
- Page 141 and 142:
51Testing 软 件 测 试 网 结
- Page 143 and 144:
51Testing 软 件 测 试 网 ●
- Page 145 and 146:
51Testing 软 件 测 试 网 注
- Page 147 and 148:
51Testing 软 件 测 试 网 ●
- Page 149 and 150:
51Testing 软 件 测 试 网
- Page 151 and 152:
51Testing 软 件 测 试 网 意
- Page 153 and 154:
51Testing 软 件 测 试 网 在
- Page 155 and 156:
51Testing 软 件 测 试 网 打
- Page 157 and 158:
51Testing 软 件 测 试 网 复
- Page 159 and 160:
51Testing 软 件 测 试 网 Part
- Page 161 and 162:
51Testing 软 件 测 试 网 ●
- Page 163 and 164:
51Testing 软 件 测 试 网 你
- Page 165 and 166:
51Testing 软 件 测 试 网 插
- Page 167 and 168:
51Testing 软 件 测 试 网 该 s
- Page 169 and 170:
51Testing 软 件 测 试 网 本
- Page 171 and 172:
51Testing 软 件 测 试 网 Point
- Page 173 and 174:
51Testing 软 件 测 试 网 该
- Page 175 and 176:
51Testing 软 件 测 试 网 当
- Page 177 and 178:
51Testing 软 件 测 试 网 出
- Page 179 and 180:
51Testing 软 件 测 试 网 ●
- Page 181 and 182:
51Testing 软 件 测 试 网 ●
- Page 183 and 184: 51Testing 软 件 测 试 网 编
- Page 185 and 186: 51Testing 软 件 测 试 网 设
- Page 187 and 188: 51Testing 软 件 测 试 网 当
- Page 189 and 190: 51Testing 软 件 测 试 网 该
- Page 191 and 192: 51Testing 软 件 测 试 网 这
- Page 193 and 194: 51Testing 软 件 测 试 网 放
- Page 195 and 196: 51Testing 软 件 测 试 网 性
- Page 197 and 198: 51Testing 软 件 测 试 网 基
- Page 199 and 200: 51Testing 软 件 测 试 网 Ratio
- Page 201 and 202: 51Testing 软 件 测 试 网 由
- Page 203 and 204: 51Testing 软 件 测 试 网 结
- Page 205 and 206: 51Testing 软 件 测 试 网 跨
- Page 207 and 208: 51Testing 软 件 测 试 网 ●
- Page 209 and 210: 51Testing 软 件 测 试 网 测
- Page 211 and 212: 51Testing 软 件 测 试 网 例
- Page 213 and 214: 51Testing 软 件 测 试 网 性
- Page 215 and 216: 51Testing 软 件 测 试 网 由 s
- Page 217 and 218: 51Testing 软 件 测 试 网 注
- Page 219 and 220: 51Testing 软 件 测 试 网 设
- Page 221 and 222: 51Testing 软 件 测 试 网 创
- Page 223 and 224: 51Testing 软 件 测 试 网 当
- Page 225 and 226: 51Testing 软 件 测 试 网 并
- Page 227 and 228: 51Testing 软 件 测 试 网 在
- Page 229 and 230: 51Testing 软 件 测 试 网 这
- Page 231 and 232: 51Testing 软 件 测 试 网 地
- Page 233: 51Testing 软 件 测 试 网 例
- Page 237 and 238: 51Testing 软 件 测 试 网 使
- Page 239 and 240: 51Testing 软 件 测 试 网 控
- Page 241 and 242: 51Testing 软 件 测 试 网 活
- Page 243 and 244: 51Testing 软 件 测 试 网 注
- Page 245 and 246: 51Testing 软 件 测 试 网 以
- Page 247 and 248: 51Testing 软 件 测 试 网 ●
- Page 249 and 250: 51Testing 软 件 测 试 网 的
- Page 251 and 252: 51Testing 软 件 测 试 网 ●
- Page 253 and 254: 51Testing 软 件 测 试 网
- Page 255 and 256: 51Testing 软 件 测 试 网 表
- Page 257 and 258: 51Testing 软 件 测 试 网 例
- Page 259 and 260: 51Testing 软 件 测 试 网 生
- Page 261 and 262: 51Testing 软 件 测 试 网 删
- Page 263 and 264: 51Testing 软 件 测 试 网 ●
- Page 265 and 266: 51Testing 软 件 测 试 网 Test
- Page 267 and 268: 51Testing 软 件 测 试 网 生
- Page 269 and 270: 51Testing 软 件 测 试 网 文
- Page 271 and 272: 51Testing 软 件 测 试 网 步
- Page 273 and 274: 51Testing 软 件 测 试 网 在
- Page 275 and 276: Response vs. Time ( 响响 应 时
- Page 277 and 278: 51Testing 软 件 测 试 网 Comma
- Page 279 and 280: 51Testing 软 件 测 试 网 Optio
- Page 281 and 282: 51Testing 软 件 测 试 网 消
- Page 283 and 284: 51Testing 软 件 测 试 网 将
- Page 285 and 286:
51Testing 软 件 测 试 网 ● L
- Page 287 and 288:
51Testing 软 件 测 试 网 To fi
- Page 289 and 290:
51Testing 软 件 测 试 网 你
- Page 291 and 292:
51Testing 软 件 测 试 网 2 点
- Page 293 and 294:
51Testing 软 件 测 试 网 当
- Page 295 and 296:
51Testing 软 件 测 试 网 负
- Page 297 and 298:
51Testing 软 件 测 试 网 如
- Page 299 and 300:
51Testing 软 件 测 试 网 应
- Page 301 and 302:
51Testing 软 件 测 试 网 Comma
- Page 303 and 304:
51Testing 软 件 测 试 网 括
- Page 305 and 306:
51Testing 软 件 测 试 网 令
- Page 307 and 308:
51Testing 软 件 测 试 网 令
- Page 309 and 310:
51Testing 软 件 测 试 网 修
- Page 311 and 312:
51Testing 软 件 测 试 网 系
- Page 313 and 314:
51Testing 软 件 测 试 网 rtvsr
- Page 315 and 316:
51Testing 软 件 测 试 网 你
- Page 317 and 318:
51Testing 软 件 测 试 网
- Page 319 and 320:
51Testing 软 件 测 试 网 UNIX
- Page 321:
51Testing 软 件 测 试 网 本