1. String Comparision - StrComp
This function is to compare two strings length and returns the output.
The following function returns an output as 0 if there is no difference found.
It returns 1 if the length of string 1 > string 2
It returns -1 if the length of string 2 > than string 1
Dim Str1, Str2, X
Str1 = 'Sudha'
Str2 = 'Sudha'
X = StrComp(Str1, Str2, X)
msgbox X
Output = 0
Dim Str1, Str2, X
Str1 = 'SudhaTest'
Str2 = 'Sudha'
X = StrComp(Str1, Str2, X)
msgbox X
Output = 1
Dim Str1, Str2, X
Str1 = 'Sudha'
Str2 = 'SudhaTest'
X = StrComp(Str1, Str2, X)
msgbox X
Output = -1
2. String Reverse - StrReverse
This function is to display the disired string characters in reverse order.
Dim Str, X
Str = 'Testing Pond'
X = StrReverse(Str)
msgbox X
Output = dnoP gnitseT
val=1002
x=StrReverse(val)
msgbox x 'Output: 2001
val=#10-10-10#
x=StrReverse(val)
msgbox x 'Output: 0102/01/01
3. LCase/UCase Function
These functions are to convert the string from lower to upper case and upper case to lower case.
Dim X
X = UCase("sudha")
msgbox X
Output - SUDHA
Dim X
X = LCase("SUDHA")
msgbox X
Output - sudha
QTP FAQs
Interview Questions And Answers For Beginners
Monday, February 13, 2012
Monday, July 20, 2009
How to identify test cases can be automaed?
We can identify can be automated test cases by following the below guidelines.
- Where we need 'Repetetive Testing' to be done.
- Core functionalities in the application can be automated
- For Long Term Projects.
- We should avoid automate test cases when there is one time activity and includes more human involvement.
- Dynamically changing screen.Though possible to automate this increases the complexity of the script.
- Avoiding screens where objects are created dynamically.
- Avoiding business scenarios where complex hardware is involved.
- Avoiding scenarios where there are many rows in a table so that performance of the script can be reduced.
- Avoiding scenarios that require high degree of coding while automating so that script’s complexity is reduced and high maintainability of the script is ensured.
- Where we need 'Repetetive Testing' to be done.
- Core functionalities in the application can be automated
- For Long Term Projects.
- We should avoid automate test cases when there is one time activity and includes more human involvement.
- Dynamically changing screen.Though possible to automate this increases the complexity of the script.
- Avoiding screens where objects are created dynamically.
- Avoiding business scenarios where complex hardware is involved.
- Avoiding scenarios where there are many rows in a table so that performance of the script can be reduced.
- Avoiding scenarios that require high degree of coding while automating so that script’s complexity is reduced and high maintainability of the script is ensured.
Sunday, July 19, 2009
Have you written Test Plan? What is a Test Plan? What does it include?
Yes.I will write Test Plan.
A Test Plan is a document that describes the scope, approach, resources, and schedule of intended testing activities. It identifies the test items, the features to be tested, the testing tasks and who will do each task (roles and responsibilities) and any risks and its solutions.
A Test Plan includes Heading, Revision History, Table of Contents, introduction, The Scope, Approach, Overview, S/W and H/W resources, different types of testing that will be carried out, issues, risks, assumptions and sign off section.
A Test Plan is a document that describes the scope, approach, resources, and schedule of intended testing activities. It identifies the test items, the features to be tested, the testing tasks and who will do each task (roles and responsibilities) and any risks and its solutions.
A Test Plan includes Heading, Revision History, Table of Contents, introduction, The Scope, Approach, Overview, S/W and H/W resources, different types of testing that will be carried out, issues, risks, assumptions and sign off section.
Thursday, July 16, 2009
As a QA Tester , can you tell me the situatio when you felt most proud of it?
When I find defects that others don't find.
When I find defects at last day of testing that crashes the system.
Example: We can close a web page by clicking on X or Close button or Pressing Alt+F4 on keyboard. When I tried to close web page by pressing Alt+F4 on keyboard, my application has been crashed, It was last day of testing phase. All developers, manager and my lead went mad with this big defect. Later developers disabled Alt+F4 feature temporarily and made application went to production.
When I find defects at last day of testing that crashes the system.
Example: We can close a web page by clicking on X or Close button or Pressing Alt+F4 on keyboard. When I tried to close web page by pressing Alt+F4 on keyboard, my application has been crashed, It was last day of testing phase. All developers, manager and my lead went mad with this big defect. Later developers disabled Alt+F4 feature temporarily and made application went to production.
Wednesday, July 8, 2009
Wednesday, August 13, 2008
Subscribe to:
Posts (Atom)