fyi 发表于 2010-9-28 11:42

贡献一个面试经验: Nokia Gate5 Berlin

本帖最后由 fyi 于 2010-9-28 13:58 编辑

一面,电话面试,全程英语,首先是对方自我介绍,然后是自己自我介绍。
接着发到信箱一个链接,点击链接是一个 online 的文本编辑器,双方都能同时看到和输入。

第一题:
1. In one of our Linux environment, we have a txt based file called log.txt
2. The size of the file is 3 Gb
3. The format of the file is:
Date_time||Error_ID||Error_Description
4. We want to print the Date_Time for all the lines which contains "INFO" in the Error_Description part
5. Search only from last 10 lines
6. Do it efficiently

第二题:(先问的:你知不知道什么是 Regression Test 啊?做过 Regression Test 吗?)
Design a Regression Test for Student Reg. System
    Name: up to 10 chars
    ID: 0-99999
    Dept: String up to 15 chars
    OK    CANCEL

第三题:
C++
8 1 2 4 3 4 3 2 1 3 1
Stability of Sorting Algoritm = ?

还有一些口头的题目,记不清了。都是关于算法或者基本编程技能的。

dulgon 发表于 2010-9-28 11:45

谁有答案?

Tommy.s 发表于 2010-9-28 13:28

回复 1# fyi


    tail --lines=10 log.txt|grep "INFO"|cut -d "||" -f 1

fyi 发表于 2010-9-28 13:49

回复fyi


    tail --lines=10 log.txt|grep "INFO"|cut -d "||" -f 1
Tommy.s 发表于 2010-9-28 13:28 http://www.dolc.de/forum/images/common/back.gif


    高手啊,我好久不用 linux 了,所以面试时候根本没想起来,后来放下电话就想起来怎么写了。FT.

Tommy.s 发表于 2010-9-28 13:52

回复 4# fyi


    经常用所以会一点儿。。
   第二个题目是要 用 perl 写个程序马? 没怎么看明白

fyi 发表于 2010-9-28 13:56

回复fyi


    经常用所以会一点儿。。
   第二个题目是要 用 perl 写个程序马? 没怎么看明白
Tommy.s 发表于 2010-9-28 13:52 http://www.dolc.de/forum/images/common/back.gif


    哦,这是测试领域的,如果你写个什么程序,那就是 test automation 了,
那就牛大了。如果 manual test 的话,写 test case 就可以了。

dulgon 发表于 2010-9-28 13:59

小声地问一句 ,这个是什么level 的?

Entry? junior? Senior?

dulgon 发表于 2010-9-28 14:09

by the way
那个现在做测试的,不都是要用特殊的软件吗?SQS HPQC 
怎么现在开些了?

Tommy.s 发表于 2010-9-28 14:41

回复 6# fyi


    那这样就很容易了,用 perl 3句话就可以了。。

fyi 发表于 2010-9-28 14:56

回复fyi


    那这样就很容易了,用 perl 3句话就可以了。。
Tommy.s 发表于 2010-9-28 14:41 http://www.dolc.de/forum/images/common/back.gif


    试试。。。

Tommy.s 发表于 2010-9-28 15:00

回复 10# fyi


    先读入 然后 逐行

if($Name =~/\w+/ and length($id) < 11 ){
print "Name passed\n";
}
else{
print "failed\n";
last;
}
if($id =~/\d+/ and length($id) < 6 ){
print "id passed\n";
}
else{
print "failed\n";
last;
}
if($Dept =~/\w+/ and length($id) < 16 ){
print "Dept passed\n";
}
else{
print "failed\n";
last;
}

webcxc 发表于 2010-9-28 15:02

你真强,E语的面试。{:5_369:}

fyi 发表于 2010-9-28 16:18

本帖最后由 fyi 于 2010-9-28 16:21 编辑

回复fyi


    先读入 然后 逐行

if($Name =~/\w+/ and length($id) < 11 ){
print "Name passed ...
Tommy.s 发表于 2010-9-28 15:00 http://www.dolc.de/forum/images/common/back.gif

程序没问题。我就是不确定这是否可以作为答案。
一方面,test automation 最多输入几个参数来确定程序运行的方向,而不会
输入 test data。对于测试领域,如果你把 test data 一起写到程序
里我认为就应该没大问题了,
可是另一方面,这个考题的重点就是在(无论是 test automation
还是 manual test)考应该加什么样的 test data。
是 equivalence class 里任意一个值对于每个 field 各一次,
还是取边界值的两侧值作为 test data。
根据我的经验,我个人认为应该是第一种。

Tommy.s 发表于 2010-9-28 17:26

回复 13# fyi

没错, 主要是我一直都没看懂它到底想要干什么。。。可能不是搞这块的,不太了解这方面的想法。。
这样看 其实考得不是编程,而是对 regression test 得想法

fyi 发表于 2010-9-28 19:07

回复fyi

没错, 主要是我一直都没看懂它到底想要干什么。。。可能不是搞这块的,不太了解这方面的想 ...
Tommy.s 发表于 2010-9-28 17:26 http://www.dolc.de/forum/images/common/back.gif


    没错!对第三题有什么见解吗?

germany_guy 发表于 2010-9-28 21:07

程序没问题。我就是不确定这是否可以作为答案。
一方面,test automation 最多输入几个参数来确定程序 ...
fyi 发表于 2010-9-28 16:18 http://www.dolc.de/forum/images/common/back.gif



我觉得这里是要你设计test case, 应该用Equivalence partitioning和Boundary Value Analysis测试Name, ID, Dept是不是合法。

germany_guy 发表于 2010-9-28 21:27

本帖最后由 germany_guy 于 2010-9-28 21:46 编辑

回复 15# fyi


#include <iostream>
#include <algorithm>
using namespace std;

int main() {
    int a = {8 ,1, 2, 4, 3, 4, 3, 2, 1, 3, 1};
   
    sort(a, a+11);
   
    for (int i=0; i<11; i++) {
      cout << a << " ";
    }
   
    return 0;
}

想了想,这个好像还不太对,冒泡应该可以, stability sorting排一个元素的时候,其他的保持不变。

fyi 发表于 2010-9-28 22:58

我觉得这里是要你设计test case, 应该用Equivalence partitioning和Boundary Value Analysis测试N ...
germany_guy 发表于 2010-9-28 21:07 http://www.dolc.de/forum/images/common/back.gif


    我个人认为 regression test 应该不包括 negative test。也就是正常功能的采样测试,不包括非正常功能的采样测试。

germany_guy 发表于 2010-9-28 23:14

我个人认为 regression test 应该不包括 negative test。也就是正常功能的采样测试,不包括非正常 ...
fyi 发表于 2010-9-28 22:58 http://www.dolc.de/forum/images/common/back.gif

regression testing: Testing of a previously tested program following modification to ensure that defects have not been introduced or uncovered in unchanged areas of the software, as a result of the changes made. It is performed when the software or its environment is changed.

所以我觉得这里回归测试的目的是说不管以前的positive test或者是negative test,他们的结果要和以前一样。
页: [1]
查看完整版本: 贡献一个面试经验: Nokia Gate5 Berlin