Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 process opened for ie help
02-13-2011, 10:35 AM (This post was last modified: 02-14-2011 03:24 AM by priya999.)
Post: #1
2 process opened for ie help

hi i am trying to close all opened internet explorer using task manager

i have used for loop to close all the error by getting the number of ie opened
but its only perform this operation for oneiteration and from 2nd itearation it throws the folln error

"not found "
Find all posts by this user
Quote this message in a reply
02-16-2011, 01:19 AM
Post: #2
RE: 2 process opened for ie help
I can see a few issues here and some common mistakes. Without seeing your code its hard to say exactly. Common mistakes are to not start with "0" in the loop. Vbscript arrays are zero based. Maybe all the processes ended, but you are still trying to process one. use "On error goto 0" to override VBscripts stop on line with error and then handle the event manually.

If nothing works, post more of your code.

Hope this helps.

Thanks
Find all posts by this user
Quote this message in a reply
02-22-2011, 08:51 AM
Post: #3
RE: 2 process opened for ie help
thank u i will try again and will post the code here
Find all posts by this user
Quote this message in a reply
02-23-2011, 10:05 PM
Post: #4
RE: 2 process opened for ie help
(02-13-2011 10:35 AM)priya999 Wrote:  hi i am trying to close all opened internet explorer using task manager

i have used for loop to close all the error by getting the number of ie opened
but its only perform this operation for oneiteration and from 2nd itearation it throws the folln error

"not found "

Why are you looping through task manager? Any specific purpose?
If my req is simply to close all open IE then i would use
Systemutil.closeprocessbyname "iexplore.exe"

Basanth
QTP On Unix- Java Way - Without Putty or Terminal Emulation
You have no idea how high I can fly...
Find all posts by this user
Quote this message in a reply
02-25-2011, 08:00 AM (This post was last modified: 02-25-2011 08:07 AM by priya999.)
Post: #5
RE: 2 process opened for ie help
ha ha that was simple solution
from now i will try to keep my scirpt simple
but i have doudt that

when i trying to close the ie process from the task manager
first issue
i can see that there are 2 process for each ie opened

second issue
no matter how many ie are opened qtp closes them all in first iteration

thats is the reason for the second loop it gives "not found" error
Find all posts by this user
Quote this message in a reply
02-25-2011, 03:35 PM
Post: #6
RE: 2 process opened for ie help
(02-25-2011 08:00 AM)priya999 Wrote:  ha ha that was simple solution
from now i will try to keep my scirpt simple
but i have doudt that

when i trying to close the ie process from the task manager
first issue
i can see that there are 2 process for each ie opened

second issue
no matter how many ie are opened qtp closes them all in first iteration

thats is the reason for the second loop it gives "not found" error


2 Process for each IE - Restart the machine and try again. It never happens that way.

no matter how many ie are opened qtp closes them all in first iteration
thats is the reason for the second loop it gives "not found" error - Restart should resolve the issue if you are using the right code. However, would you mind pasting the code?

Basanth
QTP On Unix- Java Way - Without Putty or Terminal Emulation
You have no idea how high I can fly...
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Killing the windows process using QTP Script. nagaraj_kv 2 879 05-03-2012 01:13 PM
Last Post: Ankesh
  QTP Business Process Testing vijaya2009 1 1,578 01-11-2012 11:38 AM
Last Post: nileshpatil70
Exclamation Very Slow Response time of WpfApp when QTP is opened. krr 1 501 11-23-2011 09:06 AM
Last Post: sowmya
  how to check if correct page/Browser is opened uma87 2 778 08-04-2011 03:02 PM
Last Post: sshukla12
  Killing the windows process using QTP Script. nagaraj_kv 2 1,337 06-15-2011 06:24 PM
Last Post: ksshwetha

Forum Jump:


User(s) browsing this thread: 1 Guest(s)