martes, diciembre 31
How to write testcase for Email id ?
ECP:Equlence class partetioning:
its is one of the famous blackbox tech which is used for creation of the test cases.Equelence class is a subset of data that represents the larger calss.
ex:from the same question of validating the login id,if the req says that the mail id must consists of only alphabets then u need to test
1.weather login id accepts numbers.(this is one equlence class)
2.weather login id accepts a spl symbol(this is other equilence class)
Equlence partetioning is testing for equlence class rather than taking exaustive testing i.e in first case u need not test for all the combinations of numbers in the second case u need not test for all the combinations of spl characters.
BVA:Boundary Value analysis:it is also another famous blackbox testcase design tec,where we need to focus on the i/p and o/p boundaries of the system funtion.
ex:in the same login id example if the req damands that the mail id must be 8 chars long we write test cases to check for 7 and 9 chars respectively.
coming to the test case on email id,
1.Check for ECP i.e weather the system accepts all the numbers or alphabets or spl charteristics.here we had derived 3 Equalence classes.
2.check for Boundary value analysis i.e if the req says the login id must be 8 chars long (excluding domain name,ex:xxxxxxxx.gmail.com)then check the loginid for 7 chars and 9 chrars.
3.Check weather the loginid accepts the user name starting with caps letter or number or spl charaters.
4.the spl characters used generally are '_',"." aprt from this the system automatically gives u the '@"symbol.
5.check weather the system accepts
a.more than one spl symbol..i.e xxx.xx_x@gmail.com/xxx@x.xx@gmail.com
b.The same spl characters for more than once i.e xxx_xx_x@gmail.com
6.Check for comination of equelnce classes.
i.e combining alphabets and numbers..i.e aaa2aaa1@gmail.com
7.check the mail can be of same domain name i.e gmail@gmail.com
8..apart from this u can even test the GUI of the login field,when we move the curser on to text field the arrow pointer of mouse must become "I" shape(part of cursery testing),
the curser must be blinking in the testfield so as to make the user to pay attention,and even in some aplications the textfield where the cursor blinks will be in highlighted.
Fuente: http://ssoftwaretesting.blogspot.mx/2010/07/how-to-write-testcase-for-email-id.html
lunes, diciembre 30
Guias de blogs sobre de pruebas
Blogs sobre pruebas de software
pedrosebastianmingo.com/blog
synergix.wordpress.com
Software Testing ( softwaretestingguide.blogspot.mx )
Guias de Utilidades de pruebas
QTP ( quicktestproguide.blogspot.mx )
LoadRunner
WinRunner ( winrunnerfaqs.blogspot.mx )
Quality Center ( qualitycenterguide.blogspot.mx )
SQL Server ( mssqlserverguide.blogspot.mx )
http://testingreflections.com/
http://googletesting.blogspot.mx/
http://www.wilsonmar.com/
http://www.wilsonmar.com/1loadrun.htm
pedrosebastianmingo.com/blog
synergix.wordpress.com
Software Testing ( softwaretestingguide.blogspot.mx )
Guias de Utilidades de pruebas
QTP ( quicktestproguide.blogspot.mx )
LoadRunner
WinRunner ( winrunnerfaqs.blogspot.mx )
Quality Center ( qualitycenterguide.blogspot.mx )
SQL Server ( mssqlserverguide.blogspot.mx )
http://testingreflections.com/
http://googletesting.blogspot.mx/
http://www.wilsonmar.com/
http://www.wilsonmar.com/1loadrun.htm
viernes, diciembre 27
Database Testing – Properties of a Good Test Data and Test Data Preparation Techniques
A couple of months ago, I wrote about database testing strategies.
It covered the aspect that is entirely related to the execution of test
cases. It was all about black-box testing of a database. There is
another important aspect of DB testing activity which we will cover in
this article.
As a tester, you have to test the ‘Examination Results’ module of the website of a university. Consider the whole application has been integrated and it is in ‘Ready for Testing’ state. ‘Examination Module’ is linked with ‘Registration’, ‘Courses’ and ‘Finance’ modules. Assume that you have adequate information of the application and you created a comprehensive list of test scenarios. Now you have to design, document and execute these test cases. In ‘Actions/Steps’ section of the test cases, you must mention the acceptable data as input for the test. The data mentioned in test cases must be selected properly. The accuracy of ‘Actual Results’ column of TC Document is primarily dependent upon the test data. So, step to prepare the input test data is significantly important. Thus, here is my rundown on ”DB Testing – Test Data Preparation Strategies”.
The test data should be selected precisely and it must possess the following four qualities:
1. Realistic: By realistic, it means the data should be accurate in the context of real life e.g. in order to test ‘Age’ field, all the values should be positive and 18 or above. It is quite obvious that the candidates for an admission in the university are usually 18 years old (this might be defined in requirements).
2. Practically valid: This is similar to realistic but not the same. This property is more related to the business logic of AUT e.g. value 60 is realistic in age field but practically invalid for a candidate of Graduation or even Masters Programs. In this case, a valid range would be 18-25 years (this might be defined in requirements).
3. Versatile to cover scenarios: There may be several subsequent conditions in a single scenario, so choose the data shrewdly to cover maximum aspects of a single scenario with minimum set of data, e.g. while creating test data for result module, do not only consider the case of regular students who are smoothly completing their program. Give attention to the students who are repeating the same course and belong to different semesters or even different programs. The data set may look like this:
There
might be several other interesting and tricky sub-conditions. E.g. the
limitation of years to complete a degree program, passing a prerequisite
course for registering a course, maximum no. of courses a student may
enroll in a single semester etc. etc. Make sure to cover all these
scenarios wisely with finite set of data.
4. Exceptional data (if applicable/required): There may be certain exceptional scenarios that are less frequent but demand high importance when occur, e.g. disabled students related issues.
There are only two ways to prepare test data:
Method 1. Insert New Data:
Get a clean DB and insert all the data as specified in your test cases. Once, all your required and desired data has been entered, start executing your test cases and fill ‘Pass/Fail’ columns by comparing the ‘Actual Output’ with ‘Expected Output’. Sounds simple, right? But wait, it’s not that simple.
Few essential and critical concerns are as follows:
This is the feasible and more practical technique for test data preparation. However it requires sound technical skills and demands detailed knowledge of DB Schema and SQL. In this method you need to copy and use production data by replacing some field values by dummy values. This is the best data subset for your testing as it represents the production data. But this may not be feasible all the time due to data security and privacy issues.
This strategy deserves one separate post which we’ll discuss in next article ‘Database gray-box testing’ and precautions to take while testing database.
http://www.softwaretestinghelp.com/database-testing-test-data-preparation-techniques/
As a tester, you have to test the ‘Examination Results’ module of the website of a university. Consider the whole application has been integrated and it is in ‘Ready for Testing’ state. ‘Examination Module’ is linked with ‘Registration’, ‘Courses’ and ‘Finance’ modules. Assume that you have adequate information of the application and you created a comprehensive list of test scenarios. Now you have to design, document and execute these test cases. In ‘Actions/Steps’ section of the test cases, you must mention the acceptable data as input for the test. The data mentioned in test cases must be selected properly. The accuracy of ‘Actual Results’ column of TC Document is primarily dependent upon the test data. So, step to prepare the input test data is significantly important. Thus, here is my rundown on ”DB Testing – Test Data Preparation Strategies”.
Properties of Test Data:
1. Realistic: By realistic, it means the data should be accurate in the context of real life e.g. in order to test ‘Age’ field, all the values should be positive and 18 or above. It is quite obvious that the candidates for an admission in the university are usually 18 years old (this might be defined in requirements).
2. Practically valid: This is similar to realistic but not the same. This property is more related to the business logic of AUT e.g. value 60 is realistic in age field but practically invalid for a candidate of Graduation or even Masters Programs. In this case, a valid range would be 18-25 years (this might be defined in requirements).
3. Versatile to cover scenarios: There may be several subsequent conditions in a single scenario, so choose the data shrewdly to cover maximum aspects of a single scenario with minimum set of data, e.g. while creating test data for result module, do not only consider the case of regular students who are smoothly completing their program. Give attention to the students who are repeating the same course and belong to different semesters or even different programs. The data set may look like this:
| Sr# | Student_ID | Program_ID | Course_ID | Grade |
| 1 | BCS-Fall2011-Morning-01 | BCS-F11 | CS-401 | A |
| 2 | BCS-Spring2011-Evening-14 | BCS-S11 | CS-401 | B+ |
| 3 | MIT-Fall2010-Afternoon-09 | MIT-F10 | CS-401 | A- |
| … | … | … | … | … |
4. Exceptional data (if applicable/required): There may be certain exceptional scenarios that are less frequent but demand high importance when occur, e.g. disabled students related issues.
est data preparation techniques:
We have briefly discussed the important properties of test data and it also elaborates how test data selection is important while database testing. Now let’s discuss the ‘techniques to prepare test data’.There are only two ways to prepare test data:
Method 1. Insert New Data:
Get a clean DB and insert all the data as specified in your test cases. Once, all your required and desired data has been entered, start executing your test cases and fill ‘Pass/Fail’ columns by comparing the ‘Actual Output’ with ‘Expected Output’. Sounds simple, right? But wait, it’s not that simple.
Few essential and critical concerns are as follows:
- Empty instance of database may not be available
- Inserted test data may be insufficient for testing some cases like performance and load testing.
- Inserting the required test data into blank DB is not an easy job due to the database table dependencies. Because of this inevitable restriction, data insertion can become difficult task for tester.
- Insertion of limited test data (just according to the test cases needs) may hide some issues that could be found only with the large data set.
- For data insertion, complex queries and/or procedures may be required, and for this sufficient assistance or help from the DB developer(s) would be necessary.
- Execution of TCs becomes more efficient as the DB has the required data only.
- Bugs isolation requires no time as only the data specified in test cases present in the DB.
- Less time required for testing and results comparison.
- Clutter-free test process
This is the feasible and more practical technique for test data preparation. However it requires sound technical skills and demands detailed knowledge of DB Schema and SQL. In this method you need to copy and use production data by replacing some field values by dummy values. This is the best data subset for your testing as it represents the production data. But this may not be feasible all the time due to data security and privacy issues.
This strategy deserves one separate post which we’ll discuss in next article ‘Database gray-box testing’ and precautions to take while testing database.
http://www.softwaretestinghelp.com/database-testing-test-data-preparation-techniques/
Suscribirse a:
Entradas (Atom)