+ All Categories
Home > Documents > Faq- In General

Faq- In General

Date post: 04-Jun-2018
Category:
Upload: murali23m
View: 222 times
Download: 0 times
Share this document with a friend

of 31

Transcript
  • 8/13/2019 Faq- In General

    1/31

    What is a Test Case?A test case is a noted/documented set of steps/activities that are carried out or executedon the software in order to confirm its functionality/behavior to certain set of inputs.

    Tel me Defect Life cycle or How will you report defect in your organisation?Depends on organization and project.

    1. By using some defect Track Tools like qualityCenter,Bugzilla,Clear Quest Etc.. ( These tools I know but we are using

    Service Desk internal tool)

    . By using some internal tools.

    3. By using Excel sheet also we can report the bug.

    !n our project "#en e$er i got a de$iation from t#e requirements %#ile

    e&ecuting t#e application t#en i %ill make sure t#at t#e

    defect is reproduci'le and t#en i %ill post t#e defect

    using t#e 'ugtracking tool (service desk )'y keeping t#e status of t#e

    'ug as ne%.

    Right from the first time any bug is detected till the point when the bug is fixed

    and closed, it is assigned various statuses which are New, Open, ssigned todevelopment, development completed, !ending Re"ect, Re"ect, #eferred, andClosed$

    What is sanity testing? Or Smoke Testing?

    (anity testing is done %#ene$er t#e ne% 'uild release )like Test

    instance and stage instance *. %e #a$e to test for t#e major

    functionality of t#e application %#ic# could stop our testing part

    continuation.!f it fails, t#en %e s#ould not continue %it# our testing

    part.

    +or t#e eg of telep#one, !f %e c#eck t#efunctionality like %#ile lifting t#e recei$er, it s#ould

    gi$e t#e dial tone. if it fails, t#en its %aste of time to

    continue %it# t#e testing p#ase.

    lso called as smoke testing.

    What is Regression Testing?

    -egression Testing means to test t#e entire application to ensure t#at

    t#e fi&ing of 'ug %ill 'e affecting any%#ere else in t#e application (

    %e %ill take some test cases %#ic# is major functionality is reflecting.

    How to write Test Cases? What r the items in the Test Case? How to say whetherthe Test Case coers all functionalities in !pplication?

    Test Cases are %ritten t#e requirements gi$en 'y t#e Cust

    and realted to use of soft%are)to some e&tent*.Test Cases

    s#ould or say /ust co$er all t#e t#ings gi$en 'y t#e Client in B-D0+-D.

    Test Cases Contains

    Test case !D

  • 8/13/2019 Faq- In General

    2/31

    Desc

    !nput

    E&pected -esult

    ctual -esult

    (tatus )2ass0+ailed*

    Comments

    S"L#"$%R&%S1. Display all the information of the EMP table?

    A select ! from emp"#. Display uni$ue %obs from EMP table?& select 'istinct (ob from emp"1 select uni$ue (ob from emp"# 3. )ist the emps in the asc or'er of their *alaries?

    A select ! from emp or'er by sal asc"+. )ist the 'etails of the emps in asc or'er of the Dptnos an' 'esc of %obs?Aselect ! from emp or'er by 'eptno asc,(ob 'esc"-. Display all the uni$ue (ob groups in the 'escen'ing or'er?Aselect 'istinct (ob from emp or'er by (ob 'esc". Display all the 'etails of all /Mgrs0

    A*elect ! from emp where empno in select mgr from emp "2. )ist the emps who (oine' before 141.

    A select ! from emp where hire'ate 5 0&16(an6410"4. )ist the Empno, Ename, *al, Daily sal of all emps in the asc or'er of Annsal.

    A select empno ,ename ,sal,sal73&,1#!sal annsal from emp or'er by annsal asc"1. Display the Empno, Ename, (ob, 8ire'ate, Exp of all Mgrs

    A select empno,ename ,(ob,hire'ate, months9betweensys'ate,hire'ate exp from empwhere empno in select mgr from emp")ist the Empno, Ename, *al, Exp of all emps wor:ing for Mgr 23.A select empno,ename,sal,exp from emp where mgr ; 23"Display all the 'etails of the emps whose sal")ist the emps in the asc or'er of Designations of those (oine' after the secon' half of 141.A select ! from emp where hire'ate > 03&6(un6410 an' to9charhire'ate,00 ; 141or'er by (ob asc"

    1. )ist the emps along with their Exp an' Daily *al is more than @s.1&&.

    A select ! from emp where sal73& >1&&")ist the emps who are either /

  • 8/13/2019 Faq- In General

    3/31

    1. )ist the emps who (oine' on 16MA641,36DE

  • 8/13/2019 Faq- In General

    4/31

    #4. )ist the emps those who (oine' in 4&0s.

    A select ! from emp where to9charhire'ate,0yy0 li:e /4G0"#. )ist the emps who 'oes not belong to Deptno #&.

    A select ! from emp where 'eptno not in #&" @B select ! from emp where 'eptno J; #&" @

  • 8/13/2019 Faq- In General

    5/31

    3+. )ist the emps who (oine' in any year but not belongs to the month of March..1 select ! from emp where to9char hire'ate,0M0 not in /MA@0" @

    .# select ! from emp where to9char hire'ate,0M0 J; /MA@0" @

    .3 select ! from emp where to9charhire'ate,0MC80 not li:e /MA@G0 " @

    .+ select ! from emp where to9charhire'ate,0M0 5> /MA@0"

    .- 3-. )ist all the

  • 8/13/2019 Faq- In General

    6/31

    1. Display the Empno, Ename, *al, Dname, )oc, Deptno, %ob of all emps wor:ing at

  • 8/13/2019 Faq- In General

    7/31

    1. )ist the Empno, Ename, *al, Dname, Lra'e, Exp, an' Ann *al of emps wor:ing forDept1& or#&.AselectE.empno,E.ename,E.sal,*.gra'e,D.'name,months9betweensys'ate,E.hire'ate71#QERPQ ,1#!E.sal SA *A)from emp E,'ept D ,salgra'e *where E.'eptno in 1&,#& an' E.'eptno ; D.'eptno an' E.sal between *.losal an' *.hisal "

    1. )ist all the information of emp with )oc an' the Lra'e of all the emps belong to theLra'e range from # to + wor:ing at the Dept those are not starting with char set /P0 an' noten'ing with /*0 with the 'esignation haFing a char /a0 any where (oine' in the year 141 butnot in the month of Mar or *ep an' *al not en' with /&&0 in the asc or'er of Lra'esA select e.empno,e.ename,'.loc,s.gra'e,e.sal from emp e ,'ept ',salgra'e s where e.'eptno ;'.'eptnoan' '.'name not li:e PG an' '.'name not li:e G* an' e.sal between s.losal an' s.hisalan' s.gra'e in #,3,+

    an' empno in select empno from emp where (ob li:e GAGan' sal not li:e G&& an'to9char hire'ate, ; 141an' to9charhire'ate,M not in MA@,*EP"

    1. )ist the 'etails of the Depts along with Empno, Ename or without the emps

    A select ! from emp e,'ept ' where e.'eptnoT; '.'eptno"+4. )ist the 'etails of the emps whose *alaries more than the employee B)AE.

    A select ! from emp where sal > select sal from emp where ename ; /B)AE0"+. )ist the emps whose %obs are same as A))E.A select ! from emp where (ob ; select (ob from emp where ename ; /A))E0"

    -&. )ist the emps who are senior to ing.& select ! from emp where hire'ate 5 select hire'ate from emp where ename ;/=L0"

  • 8/13/2019 Faq- In General

    8/31

    -1. )ist the Emps who are senior to their own ML@*..1 select ! from emp w,emp m where w.mgr ; m.empno an' w.hire'ate 5 m.hire'ate "@

    .# select ! from emp w,emp m where w.empno; m.mgr an'

    w.hire'ate> m.hire'ate"-#. )ist the Emps of Deptno #& whose %obs are same as Deptno1&.

    A select ! from emp e ,'ept ' where '.'eptno ; #& an' e.'eptno ; '.'eptno an' e.(ob in select e.(ob from emp e,'ept ' where e.'eptno ; '.'eptno an' '.'eptno ;1&"-3. )ist the Emps whose *al is same as H@D or *M=C8 in 'esc or'er of *al.A*elect ! from emp where sal in select sal from emp where ename ; /*M=C80 or ename ;/H@D0 or'er by sal 'esc"-+. )ist the emps hose %obs are same as M=))E@ or *al is more than A))E.A select ! from emp where (ob ; select (ob from emp where ename ; /M=))E@0 orsal>select sal from emp where ename ; /A))E0"--. )ist the Emps whose *al is > the total remuneration of the *A)E*MA.A select ! from emp where sal >select sumnFl#comm,salTcomm,sal from emp where(ob ; /*A)E*MA0"-. )ist the emps who are senior to B)AE wor:ing at

  • 8/13/2019 Faq- In General

    9/31

  • 8/13/2019 Faq- In General

    10/31

    1. Hin' the highest pai' employee of sales 'epartment.

    A select ! from emp where sal in select maxsal from emp where 'eptno in select'.'eptno from'ept ' where '.'name ; *A)E*"

    )ist the most recently hire' emp of gra'e3 belongs to location

  • 8/13/2019 Faq- In General

    11/31

    .1 select ! from emp where hire'ate ; select minhire'ate from emp whereto9charhire'ate,00 ; /1410"

    1. )ist the employees who (oine' in 141 with the (ob same as the most senior person ofthe year 141.Aselect ! from emp where (ob in select (ob from emp where hire'ate inselect minhire'ate from emp where to9charhire'ate,00 ;01410"

    1. )ist the most senior empl wor:ing un'er the :ing an' gra'e is more than 3.A select ! from emp where hire'ate in select minhire'ate from emp where empno inselect empno from emp e ,salgra'e s where e.sal between s.losal an' s.hisal an' s.gra'e in+,-an' mgr in select empno from emp where ename ; =L"

    21. Hin' the total sal giFen to the ML@.& select sum sal from emp where (ob ; /MAALE@0" @

    B select sumsal from emp where empno inselect mgr from emp"1. Hin' the total annual sal to 'istribute (ob wise in the year 41.A select (ob,sum1#!sal from emp where to9charhire'ate, ; 141group by (ob "

    23. Display total sal employee belonging to gra'e 3.& select sumsal from emp where empno1 in select empno from emp e ,salgra'e swhere e.sal between s.losal an' s.hisal an' s.gra'e ; 3

    1. Display the aFerage salaries of all the cler:s.A select aFgsal from emp where (ob ; /

  • 8/13/2019 Faq- In General

    12/31

    22. )ist the manage rno an' the number of employees wor:ing for those mgrs in theascen'ing Mgrno.& select w.mgr ,count! from emp w,emp m1 where w.mgr ; m.empnogroup by w.mgror'er by w.mgr asc"

    24. )ist the 'epartment,'etails where at least two emps are wor:ing& select 'eptno ,count! from emp group by 'eptno1 haFing count! >; #"

    1. Display the Lra'e, umber of emps, an' max sal of each gra'e.A select s.gra'e ,count!,maxsal from emp e,salgra'e s where e.sal between s.losal an's.hisalgroup by s.gra'e"

    4&. Display 'name, gra'e, o. of emps where at least two emps are cler:s.

    A select '.'name,s.gra'e,count! from emp e,'ept ',salgra'e s where e.'eptno ; '.'eptnoan'e.(ob ;

  • 8/13/2019 Faq- In General

    13/31

    .1 select ! from emp where 'eptno not in

    select 'eptno from emp where 'name ; /*A)E*0"1. )ist the emps name ,'ept, sal an' comm. Hor those whose salary is between #&&& an'-&&& while loc is

  • 8/13/2019 Faq- In General

    14/31

    & select e.ename,e.(ob,e.sal,s.gra'e,'.'name from emp e ,'ept ' ,salgra'e s wheree.'eptno ; '.'eptno an' e.sal between s.losal an' s.hisal an'1 e.(ob not in select aFge.sal from emp e wheree.mgr ; m.empno Che sub$uery 'oes the same as 1&&. )ist the name,salary,comm. Hor those employees whose net pay is greater than or e$ual

    to any other employee salary of the company.& select e.ename,e.sal,e.comm from emp e where nFl#e.comm.,e.salTe.comm.,e.sal>; any select sal from emp" @1 select ename,sal,comm. from emp where salTnFlcomm.,& >; any select sal fromemp"7

    1. )ist the emp whose sal5his manager but more than any other manager.a select 'istinct .empno,.ename,.salfrom select w.empno,w.ename,w.sal from emp w,emp m wherew.mgr ; m.empno an' w.sal5m.sal ,select ! from emp where empno in select mgr from emp A

  • 8/13/2019 Faq- In General

    15/31

    where .sal > A.sal" @B select ! from emp w,emp m where w.mgr ; m.empno an' w.sal 5 m.salan' w.sal > any select sal from emp where empno in select mgr from emp"1. )ist the employee names an' his aFerage salary 'epartment wise.

    Aselect '.'eptno, roun'aFgnFl#e1.comm, e1.salTe1.comm, e1.sal aFg, e#.ename fromemp e1, emp e#, 'ept ' where '.'eptno ;e1.'eptno an' '.'eptno ; e#.'eptno group by'.'eptno, e#.ename" orB select '.maxsal,e.ename,e.'eptno as Qcurrent salQ from emp e,select aFg*al maxsal,'eptno from emp group by 'eptno 'where e.'eptno;'.'eptno"1&3. Hin' out least - earners of the company.A select ! from emp e where -> select count! from emp where e.sal >sal" or& select rownum ran:,empno,ename,(ob,sal from select ! from emp or'er by sal asc

    where rownum 5 " or1 select ! from emp e where - >select count'istinct sal from emp where e.sal > sal"

    1&+. Hin' out emps whose salaries greater than salaries of their managers.A select ! from emp w,emp m where w.mgr ; m.empno an' w.sal> m.sal" @B select ! from emp e ,select ! from emp where empno in select mgr from emp awhere e.sal >a.sal an' e.mgr ; a.empno

    1&-. )ist the managers who are not wor:ing un'er the presi'ent.A select ! from emp where empno inselect mgr from emp an' mgr not in

    select empno from emp where (ob ; P@E*=DEC1&. )ist the recor's from emp whose 'eptno isnot in 'ept.

  • 8/13/2019 Faq- In General

    16/31

    1&2. )ist the ame , *alary, to9'ate0316DE

  • 8/13/2019 Faq- In General

    17/31

  • 8/13/2019 Faq- In General

    18/31

    1#-. )ist the name of the 'ept where more than aFerage no. of emps are wor:ing.A select '.'name from 'ept ', emp e where e.'eptno ; '.'eptno

    group by '.'namehaFing count! > select aFgcount! from emp group by 'eptno"1#. )ist the Managers name who is haFing max no.of emps wor:ing un'er him.Aselect m.ename,count! from emp w,emp mwhere w.mgr ; m.empnogroup by m.enamehaFing count! ; select maxcount! from emp group by mgr"@B select ! from emp where empno ; select mgr from emp group by mgr haFing count! ;select maxcount! from emp group by mgr "

    1#2. )ist the Ename an' *al is increase' by 1-G an' expresse' as no.of Dollars.A select ename,to9char1.1-!sal,W, as Q*A)Q from emp" only for W it wor:s

    B select ename,WNN1.1-!sal S*A) from emp"1#4. Pro'uce the output of EMP table /EMP9AD9%B0 for Ename an' %ob.A select enameNN (ob as QEMP9AD9%BQ from emp "1#. Pro'uce the following output from EMP.'( LO)%%

    *M=C8 cler:

    A))E *alesmanA select ename NN //NN lower(obNN00 as SEMP)EE from emp"13& )ist the emps with 8ire 'ate in format %une +, 144.A select empno,ename,sal, to9charhire'ate,MC8 DD, from emp"131 Print a list of emp0s )isting /(ust salary0 if *alary is more than 1-&&, on target if *alaryis 1-&& an' /Below 1-&&0 if *alary is less than 1-&&.A select empno,ename,salNN /%O*C *A)A@0 Q*A)Q from emp where sal > 1-&& unionselect empno,ename, salNN / CA@LEC0 Q*A)Q from emp where sal ; 1-&&union

  • 8/13/2019 Faq- In General

    19/31

    select empno,ename, salNN /BE) 1-&&0 Q*A)Q from emp where sal 5 1-&&" @Bselect empno,ename,sal,(ob,

    casewhen sal ; 1-&& then CA@LECwhen sal 5 1-&& then BE) 1-&&when sal > 1-&& then %O*C *A)A@else nothingen' Q@EX=*ED *A)A@Qfrom emp"

    13# rite a $uery which return the 'ay of the wee: for any 'ate entere' in format /DD6MM60.A select to9charto9'ateK s,''6mm6yy,'ay from 'ual "133 rite a $uery to calculate the length of serFice of any employee with the company, useDEH=E to aFoi' repetitiFe typing of functions.

    A DEH=E serFice ; months9betweensys'ate,hire'ate71#& *elect empno,ename,KserFice from emp where ename ; /K name0"

    13+ LiFe a string of format /70, Ferify that the first an' last two characters arenumbers an' that the mi''le character is070. Print the expression /E*0 if Fali', /0 if notFali'. Ose the following Falues to test your solution. /1#73+0,0&171a0, /740..1

    13- Emps hire' on or before 1- th of any month are pai' on the last Hri'ay of that monththose hire' after 1-th are pai' on the first Hri'ay of the following month. Print a list of empstheir hire 'ate an' the first pay 'ate. *ort on hire 'ate..1 elect ename,hire'ate,next9'aylast9'ayhire'ate,H@=DA62 from emp whereto9charhire'ate,DD 5;1-unionselect ename,hire'ate,next9'aylast9'ayhire'ate,H@=DA from emp whereto9charhire'ate,DD > 1-"

    13

  • 8/13/2019 Faq- In General

    20/31

  • 8/13/2019 Faq- In General

    21/31

    B select count! from emp where empno in select mgr from emp" or

  • 8/13/2019 Faq- In General

    22/31

  • 8/13/2019 Faq- In General

    23/31

    1& )ist the ame, %ob an' *alary of the emps who are not belonging to the 'epartment 1&but who haFe the same (ob an' *alary as the emps of 'ept 1&..1 elect ename,(ob,sal from emp where 'eptno J; 1& an' (ob in select (ob from empwhere 'eptno ; 1&an' sal in select sal from emp where 'eptno ; 1&"

    11 )ist the Deptno, ame, %ob, *alary an' *alT

  • 8/13/2019 Faq- In General

    24/31

    .1 elect empno,sal,comm. from emp"

    12 )ist the 'etails of the emps in the ascen'ing or'er of the sal.A select ! from emp or'er by sal asc"14 )ist the 'ept in the ascen'ing or'er of the (ob an' the 'esc or'er of the emps printempno, ename..1 elect ! from emp e or'er by e.(ob asc,e.empno 'esc "

    1 Display the uni$ue 'ept of the emps.Aselect ! from 'ept where 'eptno in select uni$ue 'eptno from emp"12& Display the uni$ue 'ept with (obs..1 elect uni$ue 'eptno ,(ob from emp "

    121 Display the 'etails of the bla:e..1 elect ! from emp where ename ; /B)AE0"

    12# )ist all the cler:s..1 elect ! from emp where (ob ; /

  • 8/13/2019 Faq- In General

    25/31

    12 )ist the empno,ename,hire'ate,current 'ate K exp in the ascen'ing or'er of the exp.A select empno,ename,hire'ate,select sys'ate from 'ual,months9betweensys'ate,hire'ate71# ERPfrom empor'er by ERP asc"

    14& )ist the emps whose exp is more than 1& years.A select ! from emp where months9betweensys'ate,hire'ate71# > 1&"141 )ist the empno,ename,sal,CA3&G,DA +&G,8@A-&G,L@**,)=

  • 8/13/2019 Faq- In General

    26/31

    144 )ist the emps who (oine' in the secon' half of 4#.Aselect ! from emp where hire'ate between 0&16%O)64#0 an' 0316DE&"

    12 ho (oine' in the month haFing secon' char /a0A select ! from emp where to9charhire'ate,0M0 li:e /9AG0" @& select ! from emp where instrto9charhire'ate,0M0,0A0 ; #"

    14 )ist the emps whose salary is + 'igit number.A select ! from emp where length sal ; +"@& select ! from emp where sal between an' "

    1 )ist the emp who (oine' in 4&0s..1 elect ! from emp where to9charhire'ate,00 between /4&0 an' 040" @

  • 8/13/2019 Faq- In General

    27/31

    & select ! from emp where to9charhire'ate,00 >; /4&0 an' to9charhire'ate,005 /&0"

    #&& )ist the emp who are cler:s who haFe exp more than 4ys..1 elect ! from emp where (ob ; /sal an' 'esg shoul' be sales man wor:ing for 'ept 3&..1 elect empno,ename,sal,(ob from emp where

    1#!salTnFlcomm,& 5 3+&&& an' comm is not null an' comm5sal an' (ob ; *A)E*MAan' 'eptno ; 3&"#&2 )ist the emps who are wor:ing for 'ept 1& or #& with 'esgs as cler: or analyst with a salis either 3 or + 'igits with an exp>4ys but 'oes not belong to mons of mar,apr,sep an'wor:ing for mgrs Kno is not en'ing with 44 an' -..1 elect ! from emp where'eptno in 1&,#& an'(ob in

  • 8/13/2019 Faq- In General

    28/31

    lengthsal in 3,+ an'months9betweensys'ate,hire'ate71#> 4 an'to9charhire'ate,M not in MA@,*EP,AP@ an'mgr not li:e G44 an' mgr not li:e G-"#&4 )ist the empno,ename,sal,(ob,'eptnoKexp of all the emps belongs to 'ept 1& or #& withan exp to 1& y wor:ing un'er the same mgr with out comm. ith a (ob not en'ingirrespectiFe of the position with comm.>#&& with exp>;2y an' sal5#-&& but not belongs tothe month sep or noF wor:ing un'er the mgr whose no is not haFing 'igits either or & in theasc 'eptK 'esc 'eptA

    #& )ist the 'etails of the emps wor:ing at

  • 8/13/2019 Faq- In General

    29/31

  • 8/13/2019 Faq- In General

    30/31

    select mgr from emp

    where hire'ate5select hire'ate from emp where ename ; =L an' hire'ate > select hire'ate from emp where ename ; *M=C8 an' mgr isnot null"##- )ist the empno,ename,loc,sal,'name,loc of the all the emps belonging to :ing 'ept.A select e.empno,e.ename,'.loc,e.sal,'.'name from emp e,'ept 'where e.'eptno;'.'eptno an' e.'eptno inselect 'eptno from emp where ename ; =Lan' emp.empno 5> e.empno"## )ist the emps whose salgra'e are greater than the gra'e of miller.A select ! from emp e,salgra'e swhere e.sal between s.losal an' s.hisal an' s.gra'e >select s.gra'e from emp e,salgra'e s where e.sal between s.losal an' s.hisal an' e.ename ;M=))E@ "##2 )ist the emps who are belonging 'allas or e.empno"

    #3& *al of any cler: of emp1 table..1 elect ! from emp where (ob ; /

  • 8/13/2019 Faq- In General

    31/31

    A select ! from emp ewhere salTnFlcomm,& inselect salTnFlcomm,& from emp e,'ept ' where e.'eptno;'.'eptnoan' '.'name ; *A)E*an' e.(ob ; *A)E*MA"

    #33 Any Lra'e + emps *al of emp + table.A select ! from emp+ e,salgra'e s where e.sal between s.losal an' s.hisal an' s.gra'e ; +"

    #3+ Any emp *al of emp- table.

    A select ! from emp-"

    #3- )ist the highest pai' emp.A select ! from emp where sal in select maxsal from emp"#3 )ist the 'etails of most recently hire' emp of 'ept 3&.A select ! from emp where hire'ate inselect maxhire'ate from emp where 'eptno ; 3&"

    #32 )ist the highest pai' emp of


Recommended