Thursday, 15 September 2016

ISTQB Foundation level

1. Software testing activities should start
     
 a. as soon as the code is written
 b. during the design  stage
c. when the requirements have been formally documented
d. as soon as possible in the development life cycle

2.Faults found by users are due to:
a. Poor quality software
b. Poor software and poor testing
c. bad luck
d. insufficient time for testing
3.What is the main reason for testing software before releasing it?
 a. to show that system will work after release
 b. to decide when the software is of sufficient quality to release
c. to find as many bugs as possible before release
d. to give information for a risk based decision about release
4. which of the following statements is not true
 a. performance testing can be done during unit testing as well as during the testing of whole system
 b. The acceptance test does not necessarily include a regression test
 c. Verification  activities should not involve testers (reviews, inspections etc.)
 d. Test environments should be as similar to production environments as possible
5. When reporting faults found to developers, testers should be:
a. as polite, constructive and helpful as possible 
b. firm about insisting that a bug is not a “feature” if it should be fixed
c. diplomatic, sensitive to the way they may react to criticism
d. All of the above
6.In which order should tests be run?
 a. the most important tests first
 b. the most difficult tests first(to allow maximum time for fixing)
 c. the easiest tests first(to give initial confidence)
 d. the order they are thought of
7. The later in the development life cycle a fault is discovered, the more expensive it is to fix. why?
 a. the documentation is poor, so it takes longer to find out what the software is doing.
 b. wages are rising
 c. the  fault has been built into more documentation,code,tests, etc
 d. none of the above
8. Which is not true-The black box tester
 a. should be able to understand a functional specification or requirements document
 b. should be able to understand the source code.
 c. is highly motivated to find faults
 d. is creative to find the system’s weaknesses
9. A test design technique is
 a. a process for selecting test cases
 b. a process for determining expected outputs
 c. a way to measure the quality of software
 d. a way to measure in a test plan what has to be done
10. Testware(test cases, test dataset)
 a. needs configuration management just like requirements, design and code
 b. should be newly constructed for each new version of the software
 c. is needed only until the software is released into production or use
 d. does not need to be documented and commented, as it does not form part of the released
       software system
11. An incident logging system
 a only records defects
 b is of limited value
 c is a valuable source of project information during testing if it contains all incidents
 d. should be used only by the test team.
12. Increasing the quality of the software, by better development methods, will affect the time needed for      testing (the test phases) by:
 a. Reducing test time
 b. no change
 c. increasing test time
 d. can’t say
13. Coverage measurement

 a. is nothing to do with testing
 b. is a partial measure of test thoroughness
 c. branch coverage should be mandatory for all software
 d. can only be applied at unit or module testing, not at system testing
14. When should you stop testing?
 a. when time for testing has run out.
 b. when all planned tests have been run
 c. when the test completion criteria have been met
 d. when no faults have been found by the tests run
15. Which of the following is true?
 a. Component testing should be black box, system testing should be white box.
 b. if you find a lot of bugs in testing, you should not be very confident about the quality of software
 c. the fewer bugs you find,the better your testing was
 d. the more tests you run, the more bugs you will find.
16. What is the important criterion in deciding what testing technique to use?
 a.  how well you know a particular technique
 b. The objective of the test
 c. how appropriate the technique is for testing the application
 d. whether there is a tool to support the technique
17. If the pseudocode below were a programming language ,how many tests are required to achieve 100% statement coverage?
If x=3 then
        Display_messageX;
              If y=2 then
                         Display_messageY;
                Else
                          Display_messageZ;
Else
               Display_messageZ;      
a. 1
b. 2
c. 3
d. 4
18. Using the same code example as question 17,how many  tests are required to achieve 100% branch/decision coverage?
 a. 1
 b. 2
 c. 3
 d. 4
19 Which of the following is NOT a type of non-functional test?
 a. State-Transition
 b. Usability
 c. Performance
 d. Security
20. Which of the following  tools would you use to detect a memory leak?
 a. State analysis
 b. Coverage analysis
 c. Dynamic analysis
 d. Memory analysis
21. Which  of the following is NOT a standard related to testing?
 a.  IEEE829
 b.  IEEE610
 c.  BS7925-1
 d.  BS7925-2
 
22.which of the following is the component test standard?
 a. IEEE 829
 b. IEEE 610
 c. BS7925-1
 d. BS7925-2
23 which of the following statements are true?
 a. Faults in program specifications are the most expensive to fix.
 b. Faults in code are the most expensive to fix.
 c. Faults in requirements are the most expensive to fix
 d. Faults in designs are the most expensive to fix.
24. Which of the following is not the integration strategy?
 a. Design based
 b. Big-bang
 c. Bottom-up
 d. Top-down
25. Which of the following is a black box design technique?
 a. statement testing
 b. equivalence partitioning
 c. error- guessing
 d. usability testing
26. A program with high cyclo matic complexity  is almost likely to be:
 a. Large
 b. Small
 c. Difficult to write
 d. Difficult to test
27. Which of the following is a static test?
 a. code inspection.
 b. coverage analysis
 c. usability assessment
 d. installation test
28. Which of the following is the odd one out?
 a. white box
 b. glass box
 c. structural
 d. functional
 29. A program validates a numeric field as follows:
 values less than 10 are rejected, values between 10 and 21 are accepted, values greater than or equal to 22 are rejected
 which of the following input values cover all of the equivalence partitions?
 a. 10,11,21
 b.   3,20,21
 c.   3,10,22
 d. 10,21,22
30.Using  the same specifications as question 29, which of the following covers the MOST boundary values?
a. 9,10,11,22
b. 9,10,21,22  
c. 10,11,21,22
d. 10,11,20,21

 *******************************************************************
ANSWERS:
1.d
2.b
3.d
4.c
5.d
6.a
7.c
8.b
9.a
10.a
11.c
12.a
13.b
14.c
15.b
16.b
17.c
18.c
19.a
20.c
21.b
22.d
23.c
24.a
25.b
26.d
27.a
28.d
29.c
30.b

Thursday, 8 September 2016

Install jMeter

Actually jMeter is a Pure JAVA based application. So before installing jMeter to ous system first we need to check that whether JAVA is installed on our machiene or not.

Note:- jMeter runs only on version 6 or higher.

JMeter requirements according to the Operating System

Before installing JMeter, your system should fulfill these requirements,
Operating systemWindow XPWindow 7Free BSD 9.0Linux 2.4, 2.6, 3.1Mac OS
Java Virtual MachineSun JDK6, Sun JDK 7Sun JDK 5, 6, 7.Open JDK 6Sun JDK 5, 6, 7 and Open JDK 6JDK6
Architecture32/64 bits32 bitsamd64i386, amd64




Check for Java on Windows

In this tutorial you will get to know how to download and install JMeter on Window operating. These are the steps involved in downloading and installing JMeter,
Before installing JMeterjust check your system is supporting Java or not, if not then install it because JMeter is a pure Java desktop application. You can verify that java is already installed in your windows machine or not using bellow given command in your command prompt. You can use the following procedure to check whether Java JDK is installed successfully in your system.
In Window/Linux – Just go to Terminal or click on start and typecommand prompt”
Open the “command prompt” and type command “java –version”.
If Java run-time environment is installed successfully, you will see the output as figure below,


JMeter check java version

If Java run-time environment is not installed successfully, you will see the output as figure below,
JMeter java not installed

You can get the latest version of Java SE Development Kit in the site: http://www.oracle.com/technetwork/java/javase/downloads/index.html, using this site download and install the latest version of Java SE Development Kit. After installation, just check java is installed successfully or not using command “Java – Version” in the command prompt.

Download and installation process of JMeter

Step 1: Download process of v2.11 JMeter

After checking Java, just download JMeter through the site:Download Latest JMeter
The latest version of JMeter is v2.11, go to the site and choose the Binaries file (either zip or tgz) to download as shown in figure below,

Download Latest JMeter Version


Step 2: Installation process of v2.11 JMeter

It is very simple and easy to install JMeter, just download the “.zip” or ”.tgz” file and unzip JMeter file into the directory where you want to install JMeter. A very simple and easy installation process and it’s done. After unzip process is done, the directory will look like the given below figure,
Jmeter Directory Structure

Files and directory which generate after installation of JMeter are given below,
/bin: Containsscript file which comes after installation of JMeter to start JMeter
/docs: Contains JMeter documentation files
/extras: ant connectedadditional files
/lib/: Contains Java library files of JMeter
/lib/ext: Contains protocols and core jar files for JMeter
/lib/junit: Contains JUnit library files of JMeter
To check, it got installed or not on Windows, go to the directory where did you unzip the .zip of .tgz file, open Apache-JMeter-2.11 folder, click on bin folder, and then click on JMeter.bat file will open v2.11 JMeter application. In UNIX machine type ./bin/JMeter on command prompt to open JMeter.

Start JMeter in three modes

You can open JMeter using 3 modes – GUI Mode, Server Mode and Command Line Mode

1) In GUI Mode: JMeter runs on client computer

In Windows – First, open Apache-JMeter-2.11 folder, click on bin folder, and then click on JMeter.bat file will open v2.11 JMeter application. Shown in figure below,
How to execute JMeter on Client Computer?

Once you click on JMeter.bat, it opens JMeter – 2.11, shown in figure below,
Launch JMeter First Time

2) In Server Mode: JMeter runs on server computer:

It is basically a client-server model distributed testing mode. In this process, JMeter runs on server computer as a server component. To start JMeter in server mode, run the bat file: bin\JMeter-server.bat, shown in the figure below,
JMeter in Server Mode

3) JMeter in Command line mode:

If we open JMeter in GUI mode, it takes more computer memory to open it.  If you don’t want your computer should consume more resources to run JMeter, open JMeter in command line mode.
Type this command in command line: JMeter -n -t testPlan.jmx – l log.jtl -H 127.0.0.1 -P 8000”to open JMeter, shown in the figure below,
Where,
JMeter–n: Shows that JMeter will run on command line mode
-t testPlan.jmx: Name of file contains the Test plan
– llog.jtl: Shows the log files which contains the test result
-H 127.0.0.1 -P 8000: Proxy server host name and port
JMeter in Command Line Mode