zoukankan      html  css  js  c++  java
  • 高级软件测试工程师笔试题

    1、某目录下所有文件统一批量修改ip

    sed -i  "s/10.0.0.1/10.0.1.2/g" `grep "10.0.0.1" -rl /opt/uer/wy`

      
    2、获取登陆者自身ip

    #Perform operation
    echo "operator:"
    read me
    a=`tty | awk -F "/dev/" '{print $2}'`
    date "+%Y-%m-%d %H:%M:%S" >> ../logs/operation.log
    echo `w | grep $a | awk '{print $3}'` "${me} > Perform operation: one" >> ../logs/operation.log


    3、删除某目录下小于10b的文件

    #Delete the files smaller than 10B
            for i in `ls -l ../new/$serve/properties/ | sed -e '1d' | awk '$5 < 10 {print$NF}'`
            do
                    rm -rf ../new/$serve/properties/$i
            done


    4、通过Linux执行MySQL脚本

    #这是批量的哟!
    #ip list1
    =(`cat ../tools/dblist | grep -v # | awk '{print $1}' | sed "1,1d"`) #user list2=(`cat ../tools/dblist | grep -v # | awk '{print $2}' | sed "1,1d"`) #password list3=(`cat ../tools/dblist | grep -v # | awk '{print $3}' | sed "1,1d"`) for((i=0;i<=${#list1[@]};i++)); do iip=`echo ${list1[i]} | awk -F "." '{print $4}'` ssh ${list1[i]} mkdir /home/sqlScrip/ ssh ${list1[i]} mkdir /home/sqlScrip/$iip clear scp ../sqlScrip/$iip/* ${list1[i]}:/home/sqlScrip/$iip clear #path list4=(`ls ../sqlScrip/$iip`) for((w=0;w<=${#list4[@]};w++)); do if [ "117" == "$iip" ] then ssh ${list1[i]} "mysql -h ${list1[i]} -u ${list2[i]} -p${list3[i]} < /home/sqlScrip/${iip}/${list4[w]};" clear fi done ssh ${list1[i]} 'rm -rf /home/sqlScrip' done


    5、监控某Java进程下所有线程数

    #链接数
    netstat -n | awk '/^tcp/ {++y[$NF]} END {for(w in y) print w, y[w]}'
    #统计httpd协议连接数进程数
    ps -ef|grep httpd|wc -l
    ps aux|grep httpd|wc -l
    #句柄数
    lsof -n|awk '{print $2}'|sort|uniq -c|sort -nr|more 
    #查看进程占用内存
    ps aux |awk '($1 ~apache) && ($6>50) {print $0}'
    #进程下的所有线程
    ps -p / ps -m


    6、QTP、watir与selenium的优劣对比


    7、什么是回归测试,侧重点是什么


    8、什么是场景下考虑性能测试


    9、简述安全测试流程


    10、a、建class表包括name,id

       b、插name=wonter,id=1到class表

       c、查询id<2的所有名称

       d、将以上操作通过存储过程形式写出

       e、执行该存储过程

    答案一周后给出。

  • 相关阅读:
    用python解析html--SGMLParser
    Python相对完美的URL拼接函数
    Java将视频转为缩略图--ffmpeg
    卡夫卡(kafka)
    Qt 学习之路 2
    QT的Paint 系统
    Qt的4个图像类QImage/QPixmap/QBitmap/QPicture 转
    QImage对一般图像的处理
    Hough变换-理解篇
    从零开始学习无人驾驶技术 --- 车道检测
  • 原文地址:https://www.cnblogs.com/Javame/p/3884199.html
Copyright © 2011-2022 走看看