If you want the returning rows to be sorted, you can specify a sorting expression in the ORDER BY clause. The following select statement returns rows sorted by the values in the "E-mail" column.
SELECT * FROM departments ORDER BY E-mail;
You can specifying multiple columns in the ORDER BY clause.
SELECT department_id, first_name, last_name, salary
FROM employees ORDER BY E-mail, salary;
If you want to sort column in descending order, you can specify the DESC keyword in the ORDER BY clause.
April 30, 2008
SQL interview- "ORDER BY" clause in "select statement"
Labels: SQL
Load testing
Load Testing is end to end performance testing under production load. The primary objective of this test is to determine the response times for various time critical transactions and business processes and that they are within documented expectations.The test also measures the capability of the application to function correctly under load, by measuring transaction pass/fail/error rates.
Load testing is important to repeat as load tests may need to be executed several times in the first year of wide scale deployment, to ensure that new releases and changes in database size do not push response times beyond prescribed load. Application should work properly under mentioned load for prescibed number of users.
Labels: load testing
Beta testing
Beta means a measure of the volatility, or systematic risk, of a security or a portfolio in comparison to the market as a whole.
Beta testing comes after alpha testing. Versions of the software, known as beta version, are released to a limited audience outside company. The software is released to groups of people so that further testing can ensure the product has few or no bugs. Sometimes, beta versions are made available to the open public to increase the feedback field to a maximal number of future users. But it is done in case of web sites. For example:- Gmail is still in it's beta version. Generally beta softwares are free to use by users.
Labels: beta testing
April 29, 2008
Interview Question
Question:- In customer details form, client raise the change to insert the two radio buttons after customer address. How you can test as a tester ?
Answer:-
1. Conform that radio buttons are present after the customer address.
2. Count no of radio buttons.
3. verify the initial state of the check boxes.
4. Only one should be selectable, not both at one time.
5. Verify radio button label name.
6. verify the alignment of radio buttons in the form.
Test cases for ATM Machine
1. Machine is accepting ATM card
2. Machine is rejecting expired card
3. successful entry of PIN number
4. unsuccessful operation due to enter wrong PIN number 3 times
5. successful selection of language
6. successful selection of account type
7. unsuccessful operation due to invalid account type
8. successful selection of amount to be withdraw
9. successful withdrawal.
10. Expected message due to amount is greater than day limit
11. unsuccessful withdraw operation due to lack of money in ATM
12. Expected message due to amount to withdraw is greater than possible balance.
13. unsuccessful withdraw operation due to click cancel after insert card
Interview question
Question:- If a project is long term project , requirements are also changes then test plan will change or not?why
Answer:- Yes. If requirement changes, the design documents, specifications (for that particular module which implements the requirements) will also change. Hence the test plan would also need to be updated. This is because "resources allocation" is one section in the test plan. We would need to write new test cases,review, and execute it. Hence resource allocation would have to be done accordingly. As a result the Test plan would change.
Retesting and Data Driven Testing
Retesting: it is manual process in which apllication will be tested with entire new set of data.
Data Driven Testing(DDT)- It is a Automated testing process in which application is tested with multiple test data. DDT is very easy procedure than retesting because the tester should sit and need to give different new inputs manually from front end.
Interview question
Question:- If you have executed 100 test cases , every test case passed but apart from these test case you found some defect for which test case is not prepared,then how you will report the bug?
Answer:- While reporting this bug into bug tracking tool , first you will generate the test case, write the steps to reproduce the bug. Then bug will be reported.
Interview question
Question:- Suppose the product/appication has to deliver to client at 5.00PM, at that time you or your team member caught a high severity defect at 3PM.(Remember defect is high severity)But the client cannot wait for long time.You should deliver the product at 5.00Pm exactly. What procedure you will follow?
Answer:- The bug is of high severity. So we can send the application to the client and find out the priority of the feature having bug. if its priority is low, then we can hide that feature otherwise we should:-
1.explain the situation to client and ask some more time to fix the bug.
2.If the client is not ready to give some some time then analyse the impact of defect/bug and try to find workarounds for the defect and mention these issues in the release notes as known issues or known limitations or known bugs. Here the workaround means remeady process to be followed to overcome the defect effect.
3.Normally this known issues or known limitations(defects) will be fixed in next version or next release of the software
Web testing and Client Server testing
Difference between Web testing and Client Server testing?
Testing the application in intranet (without browser) is an example for client -server. (The company firewalls for the server are not open to outside world. Outside people cannot access the application). So there will be limited number of people using that application. Client server application :-
--> runs in two or more machines
--> Application is a menu-driven
--> Connected mode (connection exists always until logout)
--> Limited / known number of users
--> Less number of network issues when compared to web app.
Testing an application in internet (using browser) is called web testing. The application which is accessible by numerous numbers around the world (World wide web). Web based application
--> runs in two or more machines
--> URL-driven
-->.Disconnected mode (state less)
--> Unlimited number of users
--> issues like browser compatibility, security issues, performance issues, etc
Interview question
Question:- Suppose you press a link in yahoo shopping site which leads to some other company website? How to test if any problem in linking from one site to another site?
Answer:-
1) Check whether the mouse cursor is turning into hand icon or not .
2) Check the link is highlighting when user place the cursor on the link .
3) Expected site is opening or not ?
4) If the site is opening then check is it opening in another window or the same window that the link itself exit (to check user friendliness of the link)
5) How fast that website is opening?
6)Site is opening according to the link or not?
7)All other sub links are opening or not?
Functional testing and regresion testing
Functional testing is a testing process where we test the functionality/behaviour of each functional component of the application, example minimize button,transfer button,links etc. We check what is each component doing in that application and what is expected?
Regression testing is the testing the behaviour of the application of the unchanged areas when there is a change in the build. We retest the build whether the changed requirement has altered the behaviour of the unchanged areas. The impacted area may be the whole of the application or a part of the application.
Labels: Functional testing, Regression testing
Interview question
Q. If a bug has high severity then usually that is treated as high priority,then why do priority given by test engineers/project managers and severity given by testers?
Project v/s product testing
Projects are generally targeted to meet a client (fixed customer)requirement. But products are targeted to meet a market (dynamic user) requirement.
Difference in both type of testing can be understand by this example:-
We used to eat food at home, in home made food, we know what we want and what we have made? that is project testing.
But if we have to eat food in market, waiter will tell you the quality of their food, and still we don't know what exactly he is going to serve. This is product testing.
Labels: product testing, Project testing
Brief introduction of test plan
Test plan can be defined as a document that describes the scope, approach, resources and schedule of intended test activities. The main purpose of preparing test plan is that every one concerned with the project are in synchronized with regards to scope, deliverables, deadlines and response for the project.
Test planning can and should occur at several levels. The first plan to consider is the Master Test Plan. The purpose of the Master Test Plan is to consider testing at all levels (unit, integration, system, acceptance, beta, etc.). The Master Test Plan is to testing what the Project Plan is to the entire development/testing effort.
General contents of a test plan:
Purpose:
This section should contain the purpose of preparing the test plan.
Scope:
This section should talk about the areas of the application which are to be tested by the QA team and specify those areas which are definitely out of the scope.
Test approach :
This would contain details on how the testing is to performed and whether any specific strategy is to be followed.
Entry criteria:
This section explains the various steps to be performed before the start of test (i.e) pre-requisites.
E.g. Environment setup, starting web server/ application server, successful implementation of latest build etc.
Resources:
This list out the people who would be involved in the project and their designation etc
Tasks and responsibilities:
This talk about the tasks to be performed and the responsibilities assigned to the various members in the project.
Exit criteria:
This contains tasks like bringing down the system or server, restoring system to pre-test environment, database, refresh etc.
Schedules/ Milestones :
This section deals with the final delivery date and the various milestone dates to be met in the course of project.
Hardware/ software requirements :
This section contains the details of system/server required to install the application or perform the testing, specific s/w that needs to be installed on the system to get the application running or to connect to the database, connectivity related issues etc.
Risks and mitigation process :
This section should list out all the possible risks that can arise during the testing and mitigation plans that the QA team plans to implement incase the risk actually turns into a reality.
Tools to be used :
This would list out the testing tools or utilities that are to be used in the project.
E.g. Winrunner, QTP, Test Director PCOM etc.
Deliverables :
This section contains various deliverables that are due to the client at various points of time. i.e. daily, weekly, start of project, end of project etc. these could include test plans, test procedures, test matrices, status reports, test scripts etc. templates for all these also be attached.
Annexure :
This section contains the embedded documents or links to document which have been/will be used in the course of testing. E.g. Templates used for reports, test cases etc. reference documents can also be attached here.
Sign off :
This section contains the mutual agreement between the client and QA team with both leads/ managers signing off their agreement on the test plan.Labels: Test Plan
Boundary Value Analysis
This method leads to a selection of test cases that exercise boundary values. Rather than focusing on input conditions, BVA derives test cases from the output domain.
- For input ranges bounded by a and b, test cases should include values a and b and just above and just below a and b respectively.
- If an input condition specifies a number of values, test cases should be developed to exercise the minimum and maximum numbers and values just above and below these limits.
- If internal data structures have prescribed boundaries, a test case should be designed to exercise the data structure at its boundary(in case of loops).
Labels: Boundary Value Analysis
Equivalence Class Partitioning
This divides the input data into classes of data from which test cases can be derived. Equivalence partitioning reduces the number of test cases needed. Equivalence class represents a set of valid or invalid class for input conditions.
Equivalence classes may be defined according to following guidelines:
- If an input condition specifies a range, one valid and two invalid equivalence classes are defined.
- If an input condition requires a specific value, then one valid and two invalid equivalence classes are defined.
- If an input condition specifies a member of a set, then one valid and one invalid equivalence class are defined.
- If an input condition is boolean, then one valid and one invalid equivalence class are defined.
Labels: Equivalence Class Partitioning
Is Black box testing is an alternative of white box testing?
Black box testing is not an alternative to white box testing. Black box testing attempts to find errors in the following categories:
- incorrect or missing functions
- interface errors (UI testing)
- errors in data structures or external database access
- performance errors and
- Initialization and termination errors.
Labels: Black box testing, white box testing
Black box Testing
Black Box Testing is testing without knowledge of the internal workings of the item being tested. For example, when black box testing is applied to software engineering, the tester would only know the "legal" inputs and what the expected outputs should be, but has no idea how the program actually arrives at those outputs.
Take a simple example of coffee machine:-
We give input, water, milk and coffee powder.
Output- Our coffee is ready to consume.
We know if we will provide these inputs, this will be our output, but we don't know anything, how machine works, make it. That is nothing but black box testing.
Black box testing is testing with respect to specifications and customer requirements.
Labels: Black box testing
April 28, 2008
Are Cookies Dangerous to Computer?
NO, Cookies are not dangerous to Computer.
A cookie is a simple piece of text. It is not a program, or a plug-in or any script. It cannot be used as a virus, and it cannot access your hard drive or any other information. Your browser can save cookie values to your hard disk if it needs to, but that is the limit of the effect on your system. You can set your browser to not to save any cookie on your system, but in that case you need to provide your login information again and again to access secure pages.
Labels: cookie testing
Difference between testing and debugging
Testing is validating whether the application is working as per the Client's Requirements and if not then defects are logged. Testing is done by tester.
Debugging is to find out where code fail and fix it. Debugging is done by developers.
Different levels of software testing
Different level for software testing are:-
1)Unit level testing
2)Integration level testing
3)System testing
4)Acceptance testing
Labels: levels of software testing
Difference between 'Testing' and 'Quality' ?
Testing is:-
1)The process used to help identify the correctness, completeness, security, and quality of developed computer software.
2)Process to ensure Quality.
3)Process to improve quality.
Quality is:-
1)Measure of conformance of a product or service to certain specifications or standards.
2)Meeting client’s requirements.
3) It is a measurement of user satisfaction.
Steps to start Testing
Before starting testing we need to follow these steps:-
1)Get requirements.
2)Make test Plan
3)write test cases
4)Build test bed.
5)Get all required software tools.
6)Divide work b/w team members.
5)Finally start testing.
6)Execute test case
7)Report bugs
8)retest fixed bugs
9)generate test report
Labels: test process
Difference between sanity and smoke testing
Sanity Testing: Brief test of major functional elements of a piece of software to determine if its basically operational for exhaustive testing. It gives a measure of confidence that the system works as expected prior to a more exhaustive round of testing.
Smoke Testing: Smoke testing is testing whether new features or functionality added are working good with exiting one and there is no new problem in working code.Smoke tests are designed to confirm that changes in the code do function as expected and do not cause failure of the rest of an entire build.
Labels: sanity and smoke testing
Difference b/w static and dynamic testing ?
Static testing:-
Static testing is Verification activity.Tester have a checklist to check whether the product is as per the set standards of the organization.These standards can be for Coding, Integrating and Deployment.Review's, Inspection's and Walkthrough's are static testing methodologies.
In static testing code is not run to uncover bugs, but verify by experts to find any flaw.
Dynamic testing:-
Dynamic testing is validation activity.Tester have SRS to check whether the product is as per requirements of the user.Unit Tests, Integration Tests, System Tests and Acceptance Tests are Dynamic Testing methodologies.
In dynamic testing code is executed to find bugs, or to confirm that it's working well.
Labels: static and dynamic testing
Test case for Date format month/date/year
Test case for Date field can be:-
1) test format which is allowed like mm/dd/yy or MM/DD/YYYY or which one allowed.
2)Test for boundary values for date and month.
3) Test For null date /month/year
4) negatine date/month/year
5)Check for 30th feb
like this more will depend on your scenario, whether any date is allowed or only user with 18+ is allowed etc.
Labels: test case
difference between project and product testing?
There is no difference between project and product testing.
Every software product is a project for a company who develop it.It may be the case that company is developing it for itself, and for the sale in open market.
For example:- Windows operating system is a Microsoft product, but internally, for Microsoft it is a project.
I hope readers got my point.
Labels: product testing
What to do if bug not reproduce at developer sysytem?
Actually we can do nothing if bug not reproduce.
1)A tester should try simple steps which can reproduce the bug again because If not reproduce, that bug will be rejected.
2) Keep screen shots of the state of software behaving abnormal.
3)Use step recording and play tools to proper record the steps which can reproduce the bug easily, or at least can help in reproducing bugs.
4) sometimes it help me, don't know your development team support it or not, If I am able to reproduce the bug on my system, still developer consider it as a bug, try to find the reason.
Difference b/w effective testing and efficient testing ?
Efficient means performing or functioning in the best possible manner with the least waste of time and effort; having and using requisite knowledge, skill, and industry; competent.
Efficient testing will be testing which uncover most of the bugs in less effort and time.
Testing Efficiency = (No. of defects Resolved / Total No. of Defects Submitted)* 100
Effective means obviously whether we are getting the bug, whether there is any benefit of the testing or not. Effective testing is whether we are getting the bug or we are just wasting our time.
Test Effectiveness = Loss due to problems / Total resources processed by the system
Test case review sheet
| Test Case Checklist | Yes | No | NA | Comments |
| 1. Is each test case numbered and named as per the standards? | | | | |
| 2. Is it clear which features or requirements are being executed by the test? | | | | |
| 3. Have test case(s) been identified for each test objective/scenario? | | | | |
| 4. Have test case (s) been designed for the positive flows in each business scenario? | | | | |
| 5. Have test case (s) been designed for the negative flows in each business scenario? | | | | |
| 6. Have the test case (s) been designed for all simple boundaries —maximum, minimum, and off-by-one boundaries? | | | | |
| 7. Are the test case (s) designed, redundant with any other test case or business scenario | | | | |
| 8. Are the test case (s) designed in a flexible manner so that there are minimum rework required in case of change in requirements? | | | | |
| 9. Have the test steps been correctly given in appropriate sequence for each test case? | | | | |
| 10. Have the Expected Results been identified correctly? (Expected Results should clearly state how the application should respond to the user actions given in each step/action. - Ensure that too many things are not included to be verified under one expected output) | | | | |
| 11. Are the pre-requisites described clearly for executing the tests? | | | | |
| 12. Are the test cases traceable to a test requirement? | | | | |
| 13. Has the test data set, if required been generated appropriately? | | | | |
| 14. Are the test cases saved in the repository? | | | | |
| 15. Have test cases been developed to exercise all error handling? | | | | |
| 16. Have the related areas that could possibly be affected by the implementation of the requirement been identified and covered in the test cases? (Identify the impact areas and check with the test cases) | | | | |
| 17. Have the test case (s) been organized in a hierarchical order and saved in the repository? | | | | |
Labels: test case review sheet
Test case template
| Project No: | Project Name: | Page: |
| Test No: | Test Name: | Date: |
| Requirement No./Name | ||
| Prerequisite Tests: | ||
| Test Description/Objectives: | ||
| Test Prerequisites:. | ||
| Tested By | Time Taken: | |
| Step | Action | Expected Result | Actual Result | Pass/Fail | Additional Comments |
| 1 | | | | | |
| 2 | | | | | |
| 3 | | | | | |
| 4 | | | | | |
| 5 | | | | | |
| 6 | | | | | |
| 7 | | | | | |
| 8 | | | | | |
| 9 | | | | | |
Labels: test case template
April 26, 2008
Database testing
Database testing is very important part of testing. Database testing is to test the database for integrity, security, redundancy etc. Database is always on target for hackers and others. You should always well test the database for security.
Other tests on database are for data,
-->There should be no loss of data when we save it.
-->Data limit allowed to save through UI should same; limit allowed by database.
--> Duplicate data should not saved
--> Right data should save in respective column in database, for example, there should not allowed to save characters in a column for integers.
--> Stored procedures should also tested
more depends on application.
Difference b/w load and stress testing?
Load test is to test whether the system is able to handle specified limits of real-life operations with the stated resources.
Stress test is testing the highest load application can handle. In other words, it is done to find the point at which the system breaks or starts degrading response time.
Write 10 test cases for Pen?
1) test for ball or ink pen.
2) test for ink color (blue, red, what)
3) write with pen to see whether it works or not
4) check brand name and logo
5) check for body color
6) check for body material
7) drop pen from a reasonable height
8) check whether it is a click pen, or a pen with cap?
9) check for pen weight
10) check the refill
April 25, 2008
When to stop testing?
Although It's difficult to say when to stop testing, still some guidelines are:-
- Deadlines reach (Dispatch time of the project)
- Test cases completed with reasonable percentage passed
- Test budget depleted
- Coverage of code/functionality/requirements reaches a specified point
- Bug rate falls below a certain level, no new high severity bug is there
- Beta or alpha testing period ends
Define test case?
A test case is a document having information about input, action, or event and an expected result. To confirm if a feature of a software application is working correctly actual result is compared with expected result. A test case particulars are:-
1) Test case identifier
2)Test case name
3) Objective
4)Test conditions/setup
5)Input data requirements
6)Steps
7)Expected results.
and more can be,
8) Actual result
9) Status
10) Remarks
Quality a Software Test engineer should have?
--> Test to break attitude
--> Customer point of view
--> Eager for quality
--> Attention to detail
--> Logical mind
--> Puzzles lover
--> Tactful and diplomatic
--> Good communication skills etc.
Describe 'software life cycle'?
Software life cycle begins when an application is first conceived and ends when it is no longer in use. It includes aspects such as initial concept, requirements analysis, functional design, internal design, documentation planning, test planning, coding, document preparation, integration, testing, maintenance, updates, retesting, phase-out, and other aspects.
Some well known software development life cycle model are:-
1) Water fall model
2) Prototype model
3) Iterative model
4)Spiral model
5)V-model
6)Agile development
Difference b/w verification and validation?
Verification typically involves reviews and meetings to evaluate documents, plans, code, requirements, and specifications. This can be done with checklists, issues lists, walkthroughs, and inspection meetings.
Validation typically involves actual testing and takes place after verifications are completed.
Verification:- "Are we building the product right?"
Validation:- "Are we building the right product?"
Why software have bugs?
Software have bugs because of:-
1) Miscommunication or no communication about what an application should or shouldn't do. If the application's requirements will not be clear, software will have bugs.
2) Software complexity - Software complexity is also a contributor for bugs. As a complex application have more paths and it's difficult to manage all efficiently.
3) Programming errors - Programming error, mistakes and logical errors.
4) Changing requirements-If there are many minor changes or any major changes, known and unknown dependencies among parts of the project are likely to interact and cause problems, and the complexity of coordinating changes may result in errors.
5) Time pressures - If we will give our team less than required time , definitely there are chances of errors.
What is 'Software Quality Assurance'?
Software Quality Assurance involves the entire software development PROCESS
- Monitoring and improving the process
- Making sure that any agreed-upon standards and procedures are followed
- Ensuring that problems are found and dealt with.
- It is oriented to 'prevention'.
In Software Quality Assurance, our objective is - "Are we building the product right?"
What is 'Software Testing'?
Software testing is testing the software according to customer requirements.
Software testing involves:-
1)Black box testing.
2)White box testing.
One more term generally used for web testing is gray box testing.
Gray box testing = Black box testing + White box testing
What are the testing challenges?
Testing challenges are:-
1) Testing should complete on time.
2)Testing should be in budget.
3)Most bugs should uncover during testing, your customer should not be the first person to discover bugs in your application.
4) All test cases should executed at least once.
What is the difference b/w integration & system testing?
Integration testing is done against design of software. Integration testing test the communication between modules or two or more independent working units.
Whereas, system testing is done against SRS (system requirements). System testing test the system as a whole.
Can a software be 100% bug free?
Testing is said to be completed when:-
1. All the test cases have been executed.
2. Bug rates is minimum, testing team is getting very less bugs now, and with low severity.
3. All the open bugs has been fixed, retested and closed.
4. The software tested is approved by Management.
Even the testing is completed, but still we can't say that software is 100% bug free. Latent bugs are still present in application, about which we get known later with use of software.
Actually testing is not done to prove a software 100% bug free but it is done to test the quality of the software.
at 12:13 PM
Labels: bug, Manual software testing interview question, testcase
Decribe Latent bug?
Latent bugs are identified with time and use of software. Y2k is example of latent bug. These bugs exists in application and get uncover themself with time.
How to test your appliction having functionality from a third party software?
It may be the case and it's also true that you have no idea about this software and there are no documents to help you either. But one thing which can help us is 'our software requirements", what we are expecting from that third party software. If that third party software is fulfilling our requirement, we need not to think more about that.We have to concentrate on our application.
Example:- I was testing a feature of my web project, "Marking location on google map". Now we don't know how, google map works, neither i will test google map, I may use google map to understand it's functionality which we have to use in our project. If i can mark location on google map through my application, then it will pass my test case.
Difference b/w retesting and regression testing?
Regression is also retesting, but the objective is different.
yes,
Regression testing is the testing which is done on every build change. We retest already tested functionality for any new bug introduced due to change.
Retesting is the testing of same functionality, this may be due to any bug fix, or due to any change in implementation technology.
which testing is done first "smoke testing or system testing " ?
Smoke test is performed at integration level, so smoke tests are performed first.
What is Build Verification Testing?
BVT is initial testing to verify that build is acceptable or not for testing. BVT is done by testing team.
1) Sanity testing and
2) Smoke Testing
the above testing are methods for BVT.
How to do Performance Testing?
Performance testing is a vast term used to find out the response time and the capacity of the application, how many users at one time application can serve.
We use performance testing tools to achieve this goal.
what are the techniques to be followed for UAT testing?
UAT testing and test cases are generally sub set of system testing. If you have done your system testing faithfully then you need not to worry about UAT, still the functionality and test cases demanded in UAT should pass for maintain your golden customer.
what is the need of testing?
Testing tells about quality of the software, and definitely everyone (customer) want a quality product.
at 10:54 AM
April 4, 2008
interview question
hi i want to ask u one question plz reply me.
what is difference between review and inspection ?
at 4:18 PM