Got run time error

38 views
Skip to first unread message

Meghraj Singh

unread,
Mar 18, 2016, 11:11:02 PM3/18/16
to QTP - HP Quick Test Professional - Automated Software Testing
Hi,
My script runs without any problem but on keeping it running overnight it gives following error.
I am working on XMLs.

Regards
Meghraj Singh

Untitled.png

Meghraj Singh

unread,
Mar 21, 2016, 4:08:21 AM3/21/16
to QTP - HP Quick Test Professional - Automated Software Testing
Can anyone please suggest me any workaround for this. I am stuck on this and not getting clue to go ahead.

Ganesh muralidharan

unread,
Mar 21, 2016, 4:13:49 AM3/21/16
to mercuryqtp
pls add the code for children1 also in the mail.

--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

---
You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,


Ganesh Muralidharan
'God Never Forgets'

Meghraj Singh

unread,
Mar 21, 2016, 6:40:36 AM3/21/16
to mercu...@googlegroups.com
Hi Ganesh,
Below are the lines of code:
But before that here is my requirement:
1. I need to two xmls and need to pop-out all sort of differences whether they are in elements/attributes/element's value/attribues's value/number of attributes, anything possible.
2. Hence i am iterating starting from the root element and next taking those elements which are not same recursively to find out the exact mismatch.
3. Hence here children1 is pointing to childrens array of element in the first xml while children2 is pointing to childrens array of corresponding element in xml2.

Set children1=root_element1.ChildElements()
        Set children2=root_element2.ChildElements()
        
        value1=""
        value2=""
        If children1.count>0 and children1.count=children2.count Then
            For child_counter = 1 To children1.count Step 1
                value1= children1.Item(child_counter)
                value2= children2.item(child_counter)


For several iterations i got this running but within some xmls or say running overnight i get this error everytime.

Regards
Meghraj Singh

You received this message because you are subscribed to a topic in the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mercuryqtp/1iKG6fBlW7s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mercuryqtp+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards
Meghraj Singh

Meghraj Singh

unread,
Apr 7, 2016, 6:20:25 AM4/7/16
to QTP - HP Quick Test Professional - Automated Software Testing
Any comments on this???


On Saturday, March 19, 2016 at 8:41:02 AM UTC+5:30, Meghraj Singh wrote:

Ayaz Ahmed

unread,
Apr 8, 2016, 10:17:10 AM4/8/16
to QTP - HP Quick Test Professional - Automated Software Testing
Run your Qtp script and store data on two files and then compare using XML diff tool.

that will be much faster. your logic is good to find and compare for a smaller data set.

Ayaz

Meghraj Singh

unread,
Apr 8, 2016, 10:25:22 AM4/8/16
to mercu...@googlegroups.com
Thanks for your response Ahmed,
You mean I should compare the two files using XML diff tool??

Reason why i am writing my own code because of the need of report that is generated afterwards. Traditionally i was using beyond compare in which i need to see each highlight difference and then prepare excel report out of that.

I have one latest folder and one previous folder each of them have nearly 150 subfolders which are identical and having more than 200 XMLs in each.

My logic is working for me, generating report as well, the only problem is that the script throws error as I mentioned in the beginning.

Regards
Meghraj Singh
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mercuryqtp/1iKG6fBlW7s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Regards
Meghraj Singh

vikash.m...@gmail.com

unread,
Apr 12, 2016, 11:41:44 AM4/12/16
to QTP - HP Quick Test Professional - Automated Software Testing
Try to kill the object everytime and create a new object of xl when it moves for new value access. Dynamic obj creation.
 or kill XL on each and every new itrations. I m not sure it will work or not but check..


For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mercuryqtp/1iKG6fBlW7s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mercuryqtp+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Regards
Meghraj Singh

Reply all
Reply to author
Forward
0 new messages