INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Different behaviour in script execution

Different behaviour in script execution

(OP)
Hi,
I have written code to get text from each HtmlColumn for a row. These code part gets exception, while script execution. But the same script is working perfectly, while the script was debugging.
I'm using Silktest 5.0.3. Anybody facing this type of pbms earlier...? Pls help me.

Thanks and Regards,
Palani.
mail to: tmpalaniselvam@yahoo.com

RE: Different behaviour in script execution

(OP)
Hi,
I thought the think time...Is it possible to increase the think time thro
code...?
I have given my code snippet and results in running mode and debugging mode.
////////////// Code start    ////////////
            [-] if
(VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable.Filename.Exists
(60))
                [ ]
                [-] if
(VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable.IsActive())
                    [ ] Print
("VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable is active
now")
                    [ ]
                [ ]
VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable.ScrollIntoView()
                [ ] Print ("Table Exists in Mailbox
page....")
                [ ]
                [-] if
(VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable.Filename.Exists
(60))
                    [ ] iRowCount =
VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable.Filename.GetRowC
ount ()
                [-] for iRowItem =1 to iRowCount
                    [ ] sTemp1 =
VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable.Filename.GetRowT
ext (iRowItem)
                    [ ] Print ("Transfer History file is
{sTemp1}")
                    [-] if (MatchStr(sFile, sTemp1))
                        [ ] iItem = iRowItem
                        [ ] break
                [-] if (iItem > 0 )
                    [ ] Print (sTemp1)
                    [ ] Print
(VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable.Status.GetRowTe
xt(iItem))
                    [ ] Print
(VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable.xDate.GetRowTex
t(iItem))
                    [ ] Print
(VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable.Size.GetRowText
(iItem))
                    [ ] iResult = 0
                [-] else
                    [ ] Print ("Couldn't get the file in
transfer history {sFile}")
            [-] else
                [ ] Print ("Couldn't get the file {sFile} in
transfer history")
////////////// Code End    ////////////

Result from Ordinary Running
-------------------------------------------------------------
[-] Testcase UploadAxPnrClient ("binary", "sap", "Testing", "test.txt") -
Passed
    [ ] VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable is
active now
    [ ] Table Exists in Mailbox page....
    [ ] *** Error: Invalid handle
    [ ] -1
    [ ] EXCEPT details ==> Module:, Function: GetRowCount, Line:1
    [ ] EXCEPT details ==> Module:temp.t, Function: UploadAxPnrClient,
Line:719
    [ ] EXCEPT details ==> Module:temp.t, Function: main, Line:46
[ ] UploadAxPnrClient has been failed.
-------------------------------------------------------------

Results from Debugging line by line
-------------------------------------------------------------
VST_PartnerClientHubInfoPage.TransferHistoryForMailBoxTable is active now
Table Exists in Mailbox page....
Transfer History file is test.txt
test.txt
pending -- delete
Thu May 08 17:38:12 IST 2003
1 kbs
Successfully tested case is UploadAxPnrClient.
------------------------------------------------------------

Thanks and Regards,
Palani.
mail to: tmpalaniselvam@yahoo.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close