原創 效能測試篇 使用者登入測試指令碼

2021-09-24 01:46:15 字數 786 閱讀 4437

test_102.sh

#!/bin/sh

# 使用者登入資訊監控測試

# 能夠顯示最近幾次、截止某一日期使用者登入情況:

# 能夠現實當前系統最近重啟情況

# #步驟1

test_title="使用者登入資訊監控測試 "

expect_result1=" 預期結果:能夠顯示最近幾次、截止某一日期使用者登入情況"

result_path=./

echo -e "\n" >> $test_102_result.txt

date >> $test_102_result.txt

echo $ >> $test_102_result.txt

echo -e >> $test_102_result.txt

echo $ >> $test_102_result.txt

(who /var/log/wtmp) >> $test_102_result.txt 2>&1

#步驟2

expect_result2="預期結果:能夠顯示當前系統最近重啟的情況"

echo -e >> $test_102_result.txt

echo $ >> $test_102_result.txt

echo -e >> $test_102_result.txt

(last | grep reboot) >> $test_102_result.txt 2>&1

echo -e "\n" >> $test_102_result.txt

原創 效能測試篇 網路效能測試指令碼優化

本節所要用到netperf工具對作業系統進行測試 shell指令碼 bin sh 5網路介面效能 測試網路傳輸速率 網路吞吐率 網路響應時間等,包括 tcp ucp 流吞吐速率等 echo hello 標題 test title 網路介面效能 標識96 預期結果1 ecpect result1 結果...

原創 效能測試之 效能測試需求分析

這裡以乙個電商購物 b2c 為例 從12月下旬至農曆年底 來年2月初 50天 預計營業額 400萬 這裡營業額可以理解為 完成購買訂單總金額 訪問訂單轉化率 10 這裡理解為百分之多少的訪問量會轉化為實際的 訂單 每個訂單平均選購商品數 3件左右共計300元左右的金額,這裡指每個訂單平均消費300元...

效能測試2 測試流程篇

本文主要介紹下效能測試的基本流程,效能測試從實際執行層面來看,測試的過程一般分為這麼幾個階段,如下圖 下面分別介紹下每個階段具體需要做什麼 一 效能需求分析 效能需求分析是整個效能測試工作開展的基礎,如果連效能的需求都沒弄清楚,後面的效能測試執行其實是沒有任何意義的,而且效能需求分析做的好不好直接影...