Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interview Question
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
I faced this question in interview:

1. With out using the task manager,how to close the application using vbscript and what is the statement?

Thanks in advance.
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,
We can do that in many ways.

Example: (If AUT is Mercury Flight Application then...)
Code:
systemutil.CloseProcessByName "flight4a.exe"
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Thanks sreekanth.



Couple of Interview questions which I faced:
2. When we are executing the QTP scripts from QC, Can we pass the parameters using QC. If so,Tell me the procedure?
3. How to send outlook mail from QTP? Tell me the procedure?

Appreciate your answers.
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
I think the following code clears your doubt.
Code:
set obj=createobject("outlook.Application")
set str=obj.createitem(0)
str.to="abc@gmail.com"
str.Subject="Qtp forums"
str.send
wait(5)
str.close




The above code works for your second query also.
I think the following code clears your doubt.
Code:
set obj=createobject("outlook.Application")
set str=obj.createitem(0)
str.to="abc@gmail.com"
str.Subject="Qtp forums"
str.send
wait(5)
str.close

I hope this is useful for your second query also..
Reply
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
ex-you have opened yours AUT in IE browser
set ie=createobject("internetexplorer.application")
ie.visible=true
ie.navigate AVT url

to close your AUT automatically use

ie.quit
Reply
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,
Answer to ur query no 2.
We can do it using Test parameters.
Under File->Settings->Parameters define any parameter.
Access this script from QC test lab. Go to test instance properties and their under automation specify the value for parameters u want to pass.

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Interview Questions praveen.sharma 4 5,843 08-23-2022, 02:07 PM
Last Post: ahmad3029
  Interview Questions supputuri 12 13,332 08-23-2022, 11:45 AM
Last Post: ahmad3029
  Interview question nandha 0 1,856 03-28-2018, 03:32 PM
Last Post: nandha
  Few Interview Question asked in various Companies.. shailesh.2.singh@bt.com 1 3,419 08-08-2017, 09:24 AM
Last Post: mallika199317@gmail.com
  Interview Question raghavaqtp 1 3,754 12-20-2014, 09:55 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 2 Guest(s)