Two benefits of Failure. First it makes us to Learn what does not work and second it gives us the opportunity to try a new approach.
Thursday, 28 January 2016
Sunday, 13 July 2014
How to Retrieve the disappeared Tool bar or Menu Bar in QTP Object Repository or Object Repository Manager ?
1. Open the ORMToolBarLayout.xml file from below path.
File: C:\Documents and
Settings\User\Application Data\HP\QuickTest Professional\ORMToolBarLayout.xml
2. Make the <Visible>false</Visible> tag to true
<Key
id="ref-78">ToolbarStandard</Key>
< Tools href="#ref-79"/>
< Settings href="#ref-80"/>
< DockedColumn>0</DockedColumn>
< DockedPosition>4</DockedPosition>
< DockedRow>0</DockedRow>
< FloatingLocation xsi:type="a2:Point" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/System.Drawing/System.Drawing">
< x>204</x>
< y>154</y>
< /FloatingLocation>
< FloatingSize xsi:type="a2:Size" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/System.Drawing/System.Drawing">
< width>454</width>
< height>22</height>
< /FloatingSize>
< PositionWhenLastDocked>0</PositionWhenLastDocked>
< DockedRowWhenLastDocked>1</DockedRowWhenLastDocked>
< DockedColumnWhenLastDocked>0</DockedColumnWhenLastDocked>
< TargetPositionInDockedRow>73</TargetPositionInDockedRow>
<Visible>false</Visible> to true
< Tools href="#ref-79"/>
< Settings href="#ref-80"/>
< DockedColumn>0</DockedColumn>
< DockedPosition>4</DockedPosition>
< DockedRow>0</DockedRow>
< FloatingLocation xsi:type="a2:Point" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/System.Drawing/System.Drawing">
< x>204</x>
< y>154</y>
< /FloatingLocation>
< FloatingSize xsi:type="a2:Size" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/System.Drawing/System.Drawing">
< width>454</width>
< height>22</height>
< /FloatingSize>
< PositionWhenLastDocked>0</PositionWhenLastDocked>
< DockedRowWhenLastDocked>1</DockedRowWhenLastDocked>
< DockedColumnWhenLastDocked>0</DockedColumnWhenLastDocked>
< TargetPositionInDockedRow>73</TargetPositionInDockedRow>
<Visible>false</Visible> to true
>>Run>>Regedit>>>HK_Current_User>>Software>>Mercury Interactive>>QuickTestProfessional
4. Now Close the QTP and Open The QTP and check the Object Repository.
Thursday, 19 June 2014
Split Function:-The Split function will separates a string into substrings and creates a one-dimensional array where each substring is an element.
Syntax:-
Slit(Expression, Delimiter, Count, Compare(optional))
The Split function separates a string into substrings and creates a one-dimensional array where each substring is an element.
Example: -
mystring = "How is velmuruganqa blogs?"
myarray = Split(mystring," ",2,1) ' here delimiter is space
myarray(0)
myarray(1)
a=myarray(0) 'output is =How
b=myarray(1) 'output is =is
----
Here 2 is nothing but number of count to be occur as array
Slit(Expression, Delimiter, Count, Compare(optional))
The Split function separates a string into substrings and creates a one-dimensional array where each substring is an element.
Example: -
mystring = "How is velmuruganqa blogs?"
myarray = Split(mystring," ",2,1) ' here delimiter is space
myarray(0)
myarray(1)
a=myarray(0) 'output is =How
b=myarray(1) 'output is =is
----
Here 2 is nothing but number of count to be occur as array
| Compare VALUE | DESCRIPTION |
| 0 | Binary comparison |
| 1 | Text Comparison |
| 2 | Compare information inside database |
Instr Function:-The InStr function will returns the numeric position of the first occurrence of a specified substring within a specified string when starting from the beginning (left end) of the string
Syntax:-
InStr(Start, String, Substring, Compare(optional))
The InStr function will returns the numeric position of the first occurrence of a specified substring within a specified string when starting from the beginning (left end) of the string. You can have the search for the substring be sensitive to the case (upper versus lower), or not. The default is to be case sensitive (binary comparison).
Example:-
str="Velmurugan"
str1="m"
a=instr(1,str,str1,1)
msgbox a
output:-4
Here Start is nothing but to start search from which position , if start is 1 means it will search from 1st position , if start is 5 means it will search from 5th position of string.
Note:-
InStr(Start, String, Substring, Compare(optional))
The InStr function will returns the numeric position of the first occurrence of a specified substring within a specified string when starting from the beginning (left end) of the string. You can have the search for the substring be sensitive to the case (upper versus lower), or not. The default is to be case sensitive (binary comparison).
Example:-
str="Velmurugan"
str1="m"
a=instr(1,str,str1,1)
msgbox a
output:-4
Here Start is nothing but to start search from which position , if start is 1 means it will search from 1st position , if start is 5 means it will search from 5th position of string.
Note:-
| Compare VALUE | DESCRIPTION |
| 0 | Binary comparison(case sensitive) |
| 1 | Text Comparison(case insensitive) |
| 2 | Compare information inside database |
Rnd function:-The Rnd function will generates a pseudo-random number
Syntax:-
Rnd(Number)
The Rnd function will generates a pseudo-random number greater than or equal to 0.0 and less than 1.0.
before using rnd function we have to declare Randomize Function
Example:
Randomize
Rnd()
Output:
0.1414095
Example 2:-
Randomize
upperlimit = 150000.0
lowerlimit = 10000.0
Int((upperlimit - lowerlimit + 1)*Rnd() + lowerlimit)
Output:
13366
Rnd(Number)
The Rnd function will generates a pseudo-random number greater than or equal to 0.0 and less than 1.0.
before using rnd function we have to declare Randomize Function
Example:
Randomize
Rnd()
Output:
0.1414095
Example 2:-
Randomize
upperlimit = 150000.0
lowerlimit = 10000.0
Int((upperlimit - lowerlimit + 1)*Rnd() + lowerlimit)
Output:
13366
Wednesday, 18 June 2014
Now Function:-The Now function will returns the date and time as determined by your computer.
Syntax:-Now
The Now function will returns the date and time as determined by your computer.
Example:-
a=Now
Msgbox a
'OutPut is:-6/19/2014 12:48:32 AM
The Now function will returns the date and time as determined by your computer.
Example:-
a=Now
Msgbox a
'OutPut is:-6/19/2014 12:48:32 AM
CInt(Number) :-Function-->The CInt function will converts any number to the variant of subtype Integer.
Syntax:-CInt(Number)
The CInt function will converts any number to the variant of subtype Integer.
Converts to values ranging from -32,768 to 32,767 The number is rounded off.
Code:
a=1555.567
Cint(a)
Output:
1556
And mostly where we will use . Some time when we get the value from our application, there is the chance to be an variable .
Example recently I get the value from one label ,its look like integer (E.g 8) but its displayed as variable . so in this situation we need to convert it from variable to integer.
Why we need to change it as integer.
if we need to compare the value to any integer surly we need to convert it before as an integer.
The CInt function will converts any number to the variant of subtype Integer.
Converts to values ranging from -32,768 to 32,767 The number is rounded off.
Code:
a=1555.567
Cint(a)
Output:
1556
And mostly where we will use . Some time when we get the value from our application, there is the chance to be an variable .
Example recently I get the value from one label ,its look like integer (E.g 8) but its displayed as variable . so in this situation we need to convert it from variable to integer.
Why we need to change it as integer.
if we need to compare the value to any integer surly we need to convert it before as an integer.
FormatDateTime (Date, DateFormat) -Function:-The FormatDateTime function will formats dates and times. The output format is: MM/DD/YYYY
FormatDateTime (Date, DateFormat)
The FormatDateTime function will formats dates and times. The output format is: MM/DD/YYYY
This is one which we are using frequently.
Example:-
a=formatdatetime("06/May/84")
msgbox a
'OutPut is:-5/6/1984
FormatDateTime("15:34")
Output:
6/26/1943
3:34:00 PM
There is one optional argument.
DateFormat
The optional DateFormat argument must use the constant or value from the Date Format CONSTANTS.
Example:-
a=formatdatetime("06/May/84",1)
msgbox a
'OutPut is:-Sunday,May 6,1984
The FormatDateTime function will formats dates and times. The output format is: MM/DD/YYYY
This is one which we are using frequently.
Example:-
a=formatdatetime("06/May/84")
msgbox a
'OutPut is:-5/6/1984
FormatDateTime("15:34")
Output:
6/26/1943
3:34:00 PM
There is one optional argument.
DateFormat
The optional DateFormat argument must use the constant or value from the Date Format CONSTANTS.
Example:-
a=formatdatetime("06/May/84",1)
msgbox a
'OutPut is:-Sunday,May 6,1984
Wednesday, 21 May 2014
DateDiff Function :-The DateDiff function will calculates the amount of time between two different dates.
Syntax :-
DateDiff(Interval, Date1, Date2, FirstDayofWeek, FirstWeekofYear)
Example:-
S=Datediff("d","01/May/2014","21/May/2014")
msgbox S
Output=20 (return the day different)
S1=Datediff("m","01/Jan/2014","21/May/2014")
msgbox S1
Output=4 (return the Month different)
S2=Datediff("yyyy","01/May/2013","21/May/2014")
msgbox S2
Output=1 (return the Year different)
S3=Datediff("w","01/May/2014","21/May/2014")
msgbox S3
Output=2 (return the week different)
S4=Datediff("y","01/May/2014","21/May/2014")
msgbox S4
Output=20 (return the day different of the year)
S5=Datediff("h","01/May/2014","21/May/2014")
msgbox S5
Output=480 (return the Hours different of the year)
S6=Datediff("n","01/May/2014","21/May/2014")
msgbox S6
Output=28800 (return the Minutes different of the year)
S7=Datediff("s","01/May/2014","21/May/2014")
msgbox S7
Output=1728000 (return the Seconds different of the year)
DateDiff(Interval, Date1, Date2, FirstDayofWeek, FirstWeekofYear)
Example:-
S=Datediff("d","01/May/2014","21/May/2014")
msgbox S
Output=20 (return the day different)
S1=Datediff("m","01/Jan/2014","21/May/2014")
msgbox S1
Output=4 (return the Month different)
S2=Datediff("yyyy","01/May/2013","21/May/2014")
msgbox S2
Output=1 (return the Year different)
S3=Datediff("w","01/May/2014","21/May/2014")
msgbox S3
Output=2 (return the week different)
S4=Datediff("y","01/May/2014","21/May/2014")
msgbox S4
Output=20 (return the day different of the year)
S5=Datediff("h","01/May/2014","21/May/2014")
msgbox S5
Output=480 (return the Hours different of the year)
S6=Datediff("n","01/May/2014","21/May/2014")
msgbox S6
Output=28800 (return the Minutes different of the year)
S7=Datediff("s","01/May/2014","21/May/2014")
msgbox S7
Output=1728000 (return the Seconds different of the year)
Day Function:-The Day function will Returns the day of the Date and Number of the day for that month
Example:-
a=Day(01)
msgbox a
Output=31 (Number of Days)
b=Day("01/May/2014")
msgbox b
Output =1 (Return the Day)
c=Day("01/May")
msgbox c
Output=1 (Return the Day)
a=Day(Date)
msgbox a
Output=21 (Return the current date of the current month as per system date)
a=Day(01)
msgbox a
Output=31 (Number of Days)
b=Day("01/May/2014")
msgbox b
Output =1 (Return the Day)
c=Day("01/May")
msgbox c
Output=1 (Return the Day)
a=Day(Date)
msgbox a
Output=21 (Return the current date of the current month as per system date)
Date Function :The Date function will Returns the current date as per your computer system
E.g:-
A=Date()
Msgbox A
or
A=Date
Msgbox A
A=Date()
Msgbox A
or
A=Date
Msgbox A
Hi Friends,
Hi Friend after long time I am going to share my Knowledge and I am very happy to be a blogger
If an Experienced person in QTP then he/she should know the VB Scrip In-build function .Surely we may not get chance to use all function but we should know or should store some where .,..here I am storing my knowledge to use later whenever I need... even my friend you people can use my knowledge and I am eagerly waiting for your knowledge sharing. I am mostly welcome to be a part of my blog..
If an Experienced person in QTP then he/she should know the VB Scrip In-build function .Surely we may not get chance to use all function but we should know or should store some where .,..here I am storing my knowledge to use later whenever I need... even my friend you people can use my knowledge and I am eagerly waiting for your knowledge sharing. I am mostly welcome to be a part of my blog..
Tuesday, 14 January 2014
How to rectify when QTP Menus are not displayed and disappeared ?
Step to rectify the issue.
1.Select QTP Tools menu.
2.Right Click
3. Select "Customize" sub menu.
4. Select "Tool bars" in Customize window.
5. Click "Restore All" button
6. Then Click "Yes" button in confirmation popup.
7.Click on "close" button in customize window..
Now Check all menus will be restored from QTP settings.
1.Select QTP Tools menu.
2.Right Click
3. Select "Customize" sub menu.
4. Select "Tool bars" in Customize window.
5. Click "Restore All" button
6. Then Click "Yes" button in confirmation popup.
7.Click on "close" button in customize window..
Now Check all menus will be restored from QTP settings.
Sunday, 29 December 2013
Missing Resource Error or Invalid file format error or Throwing error while load the file (master script) in QTP but same script was working properly , Now its showing invalid file Error?
There is two chances to happen like that.
1. Object Repository(.trs) file should be corrupted (if its corrupted we can't to anything )
2. Lack of memory space for QTP reports
Step to Solve second Possibility.
1. Open Run window
2. Enter %Temp% and press Enter Key.
3. Delete all file in Temp folder.
Now open the QTP and try to load the file , it will work.
1. Object Repository(.trs) file should be corrupted (if its corrupted we can't to anything )
2. Lack of memory space for QTP reports
Step to Solve second Possibility.
1. Open Run window
2. Enter %Temp% and press Enter Key.
3. Delete all file in Temp folder.
Now open the QTP and try to load the file , it will work.
Saturday, 28 December 2013
Saturday, 31 March 2012
Download QTP 11 trial version free...
Download QTP 11 trial version for free from HP download center.
Before that you need to register with HP passport. This evaluation copy of QTP 11 will be expired after 30 days.
Click Below Link
http://www8.hp.com/us/en/software/software-solution.html?compURI=tcm:245-937061
Before that you need to register with HP passport. This evaluation copy of QTP 11 will be expired after 30 days.
Click Below Link
http://www8.hp.com/us/en/software/software-solution.html?compURI=tcm:245-937061
Saturday, 10 March 2012
Testing Interview Questions that which I faced in my 5 years career. It will useful for all professional who are looking for jobs in Testing Side…All the Best…
Manual Testing:-
1. What is testing?
2. What is the difference between regression and Re-Testing?
3. What is ad-hoc testing?
4. What is difference between Sanity and Smoke testing?
5. What type of testing will handle initially?
6. What is V model?
7. What is agile developing life cycle?
8. We have 10 test cases and one Test case has been failed in 10 test cases when you are doing re-testing what type of testing will do?
9. What is user interface testing?
10. What is User acceptance testing and define different type of UAT?
11. Who will do user acceptance testing?
12. What is severity and priority? And define types?
13. What are the testing’s will perform while testing web applications?
14. What is difference between Web and Window application testing?
15. What is alpha and beta testing? And how will do that?
16. What is the difference between V-Model and Water model?
17. How will check the cookies’ and what are the types are there?
18. How will check the URL?
19. What are the different types of testing?
20. What is Block box and white box testing?
21. What is RTM and what are the contents are there?
22. What is test plan? And what are content will be there? And do you able to prepare test plan?
23. What is the difference between Test strategy and test plan
24. What are documents will be produce from testing side while deliver the project?
25. Our application content spelling mistake in home page so what is priority and severity for that?
26. Example for

27. What is quality?
28. What is test case?
29. Difference between test case & test condition?
30. What are the fields in test case document?
31. What is bug life cycle?
32. When the bug will reject and who will reject?
33. Example for showstopper bug?
34. What are the browsers will use while doing browser testing?
35. What is the maximum of the response time for displaying the page?
36. Difference between window and web application testing?
37. When you will stop the testing?
38. Write system test case for ATM (Money transfer)?
39. What you will test for Date field?
40. What are the contents will be there in bug report or Defect report?
41. Who will fix the priority?
42. How you are reporting the defect?
43. What is difference between b bug, defect and error?
44. Tomorrow is release time but you find two major severity bugs so what is your approach at the time?
45. What is integration testing?
46. What is top down and bottom up approach?
47. How will you do security testing?
48. What is load testing?
49. What is stress testing?
50. What is scalability testing?
51. What is reliability testing?
52. How you will check memory leakage?
53. How you will check SQL Injections?
54. Developer rejected or not accepted your bugs so what is your approach at the time?
55. Developer is in onsite and you reported one bug but in developer place they are not able to reproduce the bug so what you will do?
56. What are the type of links are available?
57. How will you check the broken link?
58. How do you make sure your test case cover all the requirements?
59. What is SIT??
Database Testing
60. Example for Sub queries?
61. Type of Join and Example?
62. What is self join and example?
63. How will you check the second highest salary?
64. Group by example?
65. Query for How money patients for per doctor?

66. Type of language in SQL and Example?
67. How will find the duplications in a table using SQL queries?
68. Different between Union and Union All?
69. Example for Not In?
QTP
70. How will you identify the dynamic object?
71. How will you open an application without using SystemUtil Comments?
72. How will you open IE browser using VB Scripts?
73. What is shared object repository?
74. What is the extension of the repository?
75. What is action sheet?
76. What is the use of object spy?
77. What is the difference between Dim and Redim?
78. How will you check the output value?
79. How will identify the objects from active screen?
80. What is Recovery scenario and when will we use that?
81. If default timeout 20msec and wait (10msec) so what is the total wait time?
82. What is parameterization?
83. If page have 10 check boxes, here how will you count it and will checked all check box ? and write scripts for that?
84. VB scripts for connecting to the DB?
85. What is the description language and when will use it?
1. What is testing?
2. What is the difference between regression and Re-Testing?
3. What is ad-hoc testing?
4. What is difference between Sanity and Smoke testing?
5. What type of testing will handle initially?
6. What is V model?
7. What is agile developing life cycle?
8. We have 10 test cases and one Test case has been failed in 10 test cases when you are doing re-testing what type of testing will do?
9. What is user interface testing?
10. What is User acceptance testing and define different type of UAT?
11. Who will do user acceptance testing?
12. What is severity and priority? And define types?
13. What are the testing’s will perform while testing web applications?
14. What is difference between Web and Window application testing?
15. What is alpha and beta testing? And how will do that?
16. What is the difference between V-Model and Water model?
17. How will check the cookies’ and what are the types are there?
18. How will check the URL?
19. What are the different types of testing?
20. What is Block box and white box testing?
21. What is RTM and what are the contents are there?
22. What is test plan? And what are content will be there? And do you able to prepare test plan?
23. What is the difference between Test strategy and test plan
24. What are documents will be produce from testing side while deliver the project?
25. Our application content spelling mistake in home page so what is priority and severity for that?
26. Example for

27. What is quality?
28. What is test case?
29. Difference between test case & test condition?
30. What are the fields in test case document?
31. What is bug life cycle?
32. When the bug will reject and who will reject?
33. Example for showstopper bug?
34. What are the browsers will use while doing browser testing?
35. What is the maximum of the response time for displaying the page?
36. Difference between window and web application testing?
37. When you will stop the testing?
38. Write system test case for ATM (Money transfer)?
39. What you will test for Date field?
40. What are the contents will be there in bug report or Defect report?
41. Who will fix the priority?
42. How you are reporting the defect?
43. What is difference between b bug, defect and error?
44. Tomorrow is release time but you find two major severity bugs so what is your approach at the time?
45. What is integration testing?
46. What is top down and bottom up approach?
47. How will you do security testing?
48. What is load testing?
49. What is stress testing?
50. What is scalability testing?
51. What is reliability testing?
52. How you will check memory leakage?
53. How you will check SQL Injections?
54. Developer rejected or not accepted your bugs so what is your approach at the time?
55. Developer is in onsite and you reported one bug but in developer place they are not able to reproduce the bug so what you will do?
56. What are the type of links are available?
57. How will you check the broken link?
58. How do you make sure your test case cover all the requirements?
59. What is SIT??
Database Testing
60. Example for Sub queries?
61. Type of Join and Example?
62. What is self join and example?
63. How will you check the second highest salary?
64. Group by example?
65. Query for How money patients for per doctor?

66. Type of language in SQL and Example?
67. How will find the duplications in a table using SQL queries?
68. Different between Union and Union All?
69. Example for Not In?
QTP
70. How will you identify the dynamic object?
71. How will you open an application without using SystemUtil Comments?
72. How will you open IE browser using VB Scripts?
73. What is shared object repository?
74. What is the extension of the repository?
75. What is action sheet?
76. What is the use of object spy?
77. What is the difference between Dim and Redim?
78. How will you check the output value?
79. How will identify the objects from active screen?
80. What is Recovery scenario and when will we use that?
81. If default timeout 20msec and wait (10msec) so what is the total wait time?
82. What is parameterization?
83. If page have 10 check boxes, here how will you count it and will checked all check box ? and write scripts for that?
84. VB scripts for connecting to the DB?
85. What is the description language and when will use it?
Saturday, 21 January 2012
Performance Testing - Open STA -Open Source Tool for Web Applications
Distributed Load Testing-OpenSTA
Distributed Tests
To setup for the original method of distributed testing do the following:
1. Select 1 machine that will be the master on which you will develop the tests and Run: this will be your RepositoryHost and the other machines will be the slave load generating machines.
2. On EACH of your slave machines, configure the OpenSTA Name Server by right clicking on the name server icon in the task bar and selecting Configure. Set the 'Repository Host' to the IP/Name of your master(RepositoryHost).
3. On the master(RepositoryHost) machine, create a test. Add your script to the Task group. Set the 'Host' to the IP of one of your slave machines. Set the VU to the load you want that slave to generate. Set the 'Start' to a scheduled time.
4. Now right-click on the task you've added and select 'Duplicate Task Group'. Set the 'Host in the duplicated task to another slave's IP. Optionally, you can modify the load.
5. Repeat Step 4 for all the slaves.
For Learning Open STA- Click Here
Thursday, 21 July 2011
How to close all IE browsers using QTP?
Syntax is:-
SystemUtil.CloseProcessByName ("iexplore.exe")
What is different between Dim and Redim? And how to handle Dynamic array?
Declaring an array with empty parentheses (without dimension subscripts) is called Dynamic arrays.
Ex: Public\Private\Dim ArrayName ( )
The Dim Statement is used to declare the Size for Static array.
The ReDim statement is used to size or resize a dynamic array.
Using ReDim statement You can change the number of elements and dimensions in an array repeatedly.
Using ReDim statement You can change the number of elements and dimensions in an array repeatedly.
Ex: 1 ) Dim X(10)
ReDim X(15)
Ex :2 ). Dim X(10, 10)
ReDim X(10, 15)
Here if your array has two or more dimensions, you can change the size of only the last dimension only.
NOTE: If you are using ReDim for changing the size or Dimensions of Dynamic array, it's erasing an existing data contained in the array. to avoid this you should use Preserve Keyword before the array name.
Ex: Dim X(10)
ReDim Preserve X(15)
Subscribe to:
Posts (Atom)


