| Other QTP Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| VM1 = "Invalid username or password. Please
try again. "
VM2 = "Email id is required.Password is
required. "
VM3 = "Email id is an invalid e-mail
address.Password is required. "
VM4 = "Password is required. "
VM5 = "Email id is required. "
VM6 = "Email id is an invalid e-mail
address. "
'Rowcount of the Local sheet
Rowcount = DataTable.GetSheet("Invalid login
transactions").GetRowCount
'Valid emailid and Password
Emailid = "test@iteamic.com"
Password = "Password0"
'For i = 1 to Rowcount
'Parameterised Email_id
Browser("Browser").Page
("Page").WebEdit("emailAddress").Set DataTable("Email_id",
dtLocalSheet)
EID = Browser("Browser").Page
("Page").WebEdit("emailAddress").GetRoProperty("value")
'Parameterised Password
Browser("Browser").Page
("Page").WebEdit("password").Set DataTable("Password",
dtLocalSheet)
PWD = Browser("Browser").Page
("Page").WebEdit("password").GetROProperty("Value")
If EID = Emailid And PWD = Password Then
Reporter.ReportEvent micPass, "EID & PWD
check", "Email id and Password is correct, One iteration of
Invalid login attempts is not being executed"
Else Browser("Browser").Page("Page").WebButton
("Sign-In").Click
'Output value exported to the local
sheet
Browser("Browser").Page
("Page_2").Output CheckPoint("Home page_Sign in")
'Storing the output value in a
variable(OUTPUT
OUTPUT = Datatable.GetSheet
("Invalid login transactions").Getparameter
("Validation_message_signin").value
'comparing the Variable Output and
the Validation message for a given input
If OUTPUT = VM1 Then
Reporter.ReportEvent
micPass, "VM1", "Invalid username or password. Please try
again. "
else if OUTPUT = VM2 Then
Reporter.ReportEvent
micPass, "VM2", "Email id is required.Password is
required. "
else if OUTPUT = VM3 Then
Reporter.ReportEvent
micPass, "VM3", "Email id is an invalid e-mail
address.Password is required. "
else if OUTPUT = VM4 Then
Reporter.ReportEvent
micPass, "VM4", "Password is required. "
else if OUTPUT = VM5 Then
Reporter.ReportEvent
micPass, "VM5", "Email id is required. "
else if OUTPUT = VM6 Then
Reporter.ReportEvent
micPass, "VM6", "Email id is an invalid e-mail address. "
else Reporter.ReportEvent micFail, "EID &
PWD check_FAIL", "Validation message checkpoint failed. The
captured v msg is not required"
End if
End if
I am getting syntax error saying "Expected 'End If'" at the
last line, Why is this? Kindly explain...
| | 1 |
| what is L-trim function will do? | | 1 |
| any one can explain about QTP proocess,means where to start
and how to start Scripting. | | 3 |
| How to pass parameters into an action.Please explain me
with examples | | 4 |
| How to load a object repository(using VBScript) ... very
urgent.... | | 4 |
| WHAT IS SMATR IDENTIFICATION? plz EXPLAIN BRIEFLY?
IS IT POSSIBLE in QTP?
HOW AND WHEn THE SITUATION U R USING EXPLAIN WITH EXAMPLE? | | 3 |
| Explain about the Test Fusion Report of QTP ? | Ordain-Solutions | 1 |
| hi friends can anyone tell me where can i find descriptive
programming material
please send me the link also,from which i can download the
material | | 1 |
| what is framework in QTP? any one give me answer | Wipro | 3 |
| Hi I am working with QTP.If I want to write a certification
exams,Which one is the best one
suggest me friends!!
| | 2 |
| what are inputs for automation? | | 1 |
| Hi This is tanya actually im facing problem in Qtp actully
some time QTP doesnot recoznise the recorded object due to
which script is going to fail.so can you tell me how we can
handle this situation and i have another concerened issue
is that at the time of run New errors comes every time so
how we can handle this sitauation how we can add Recovery
scenarios to the script.some time application runs
successfully and some time it produces new error thats why
i am facing lot of problem please give me the sugeestion as
soon as possible. | | 2 |
| What are the file extensions for per-action, shared object
repository files and what is the
extension for library files?
| Semantic-Space | 5 |
| Hi i want to export the data from applicatioon to excel and
later i want to import and use it for my scripts hoe can i
do this? | | 1 |
| How can I use the value retrieved by OUTPUT VALUE check
point as Input for other Actions? | Motorola | 1 |
| Explain the difference between smart identification and
object identification withn clear example. please it is
very urgent | Wipro | 1 |
| What is User defined function in QTP | Bank-Of-America | 4 |
| What is object repository? | | 2 |
| What is the need and applications of learning VB script for
a automation(QTP) engineer ain Realtime ? | | 1 |
| what are the qtp tester responsibilities? | | 2 |
| |
| For more QTP Interview Questions Click Here |