Hi Guys, here I am posting one question.
Wen u r working with Notepad. If it is not responding in
the middle of TEst...what u will do.
Answers were Sorted based on User's Feedback
Answer / nanda
if dont have answer dont post..ok. dont post this type of
answers again pls. this is one of the interview question.
ofcourse this was occured in real time also.
| Is This Answer Correct ? | 2 Yes | 0 No |
If notepad is not responding in the middle of the process,
No other operations can be done on notepad so simply skip
the process by putting On error resume next statement
before starting notepad operations and show remark by
displaying message box or display remark in result window.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ashis
There can be many answers for this one -
1. One will killing the process notepad.exe .
2.Second will be getting the text using mercury.clipboard
object and killing the notepad process .
The text copid in the clipboard can be pasted in any new
notepad window.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mercy
As notepad not responding is an unexpected event and also
this might not be the case every time, you should go for
recovery scenario.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rani
hey guys
can u plz explain this how to kill the note pad for this
any specific function is there
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / aravindh
Hi,
Try this to Close the Notepad at RunTime,
SystemUtil.CloseProcessByName("notepad.exe")
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pal
WHIT I DO NOTHING . I REMOVE THIS THOUGHT FROM MY BRAIN .
AND YOU TO DO THIS...
| Is This Answer Correct ? | 0 Yes | 3 No |
How to retrieve the object properties at runtime without the usage of GetROProperty?
how to test background color and dynamic images during runtime
What are the types of object repository?
What's Checkpoints for QTP?
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
How to release all resources file from the QTP?
How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?
Explain how Does Run time data (Parameterization) is handled in QTP?
What is the default object synchronization timeout in qtp?
Is it a smart choice to use QTP for backend testing?
what happen in object repository(shared)if we call an existing action from an external action ? and what happen in object repository(peraction)if we call an existing action from an external action ?
How to record objects of Windows taskbar