SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Junior Member
    Join Date
    Dec 2002
    Location
    Pune
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Porting Silk5.0.2 script to Silk 6.0

    Hi all,
    I have a suite of Silktest 5.0.2 scripts which I need to port on Silktest 6.0.
    Most of the test cases run fine but I am encountering a strange problem. Silk6.0 is NOT able to click "Delete" button on a particular form in "run" mode .But when I try to run the same test case in "debug" mode it clicks on the "Delete" button and succeeds perfectly. Can anyone suggest me a reason/solution?

    Thanks in advance,
    Sharad Kala

    ------------------

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Location
    Des Moines, Iowa
    Posts
    289
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Porting Silk5.0.2 script to Silk 6.0

    It might be a timing issue.

    Try adding a sleep before the run to see if the added time will allow the control to be clicked.

    ------------------

  3. #3
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Porting Silk5.0.2 script to Silk 6.0

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Sharad:
    Silk6.0 is NOT able to click "Delete" button on a particular form in "run" mode .<HR></BLOCKQUOTE>

    What error is Silk reporting?


    John


    ------------------

  4. #4
    Junior Member
    Join Date
    Dec 2002
    Location
    Pune
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Porting Silk5.0.2 script to Silk 6.0

    Thanks for the replies.

    Yes, even i had thought of it to be a timing issue so I changed Options--&gt;Agent--&gt;Timing values appropriately. The test case runs fine for a long time but continually fails at the same point when it has to click on the "delete" button. The error message reads:
    *** Error: Window '[HtmlPushButton]Delete' was not found

    I tried adding sleep( 10 ) also but still am getting the error.

    -Sharad

    ------------------

  5. #5
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Porting Silk5.0.2 script to Silk 6.0

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Sharad:

    Yes, even i had thought of it to be a timing issue so I changed Options--&gt;Agent--&gt;Timing values appropriately. The test case runs fine for a long time but continually fails at the same point when it has to click on the "delete" button. The error message reads:
    *** Error: Window '[HtmlPushButton]Delete' was not found
    <HR></BLOCKQUOTE>

    Timing is still the likely suspect here, expecially since it runs in debug mode (a most frustrating characteristic.)

    When you say it runs for a long time, are you repetitively using the Delete button during the run? Or does the Delete button fail just once when you click it at the end?

    Is this delete button exposed the entire time of the run or only at the end?

    Does the enabled state of the delete button change during the run?

    John


    ------------------

  6. #6
    Junior Member
    Join Date
    Dec 2002
    Location
    Pune
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Porting Silk5.0.2 script to Silk 6.0

    Thanks again.
    No, the "delete" button is not being used/clicked repeatedly in the test case. In fact test case tries to click it just once during the entire run.It is not even exposed during the entire test case. To be more precise my test case tries to create an "admin group". After having created it, then it tries to delete it. This all happens over a series of screens. The test case fails during the "delete" screen repeatedly.
    -Sharad

    ------------------

  7. #7
    Member
    Join Date
    Apr 2001
    Location
    Montreal, CA
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Porting Silk5.0.2 script to Silk 6.0

    Hi Sharad,
    I generally use WaitFor which is nothing but customized Exists().

    Use WaitFor(Delete,60) or if Delete.Exists(60). If it is with timing only this should work.
    thanks
    Murali

    ------------------
    Murali K Parepalli
    Intuit
    _ _ ___________ _ _
    Murali K Parepalli

  8. #8
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Porting Silk5.0.2 script to Silk 6.0

    I know this is a simplistic answer, but also try forcing the button to appear with a ScrollIntoView() call.


    ------------------

  9. #9
    Junior Member
    Join Date
    Dec 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Porting Silk5.0.2 script to Silk 6.0

    You can try SetFocus() command and after that give sleep(10) , then delete command.

    See if it helps!

    Ritu

    ------------------

  10. #10
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Porting Silk5.0.2 script to Silk 6.0

    Some times the declarations of windows change on the fly *atleast from the point of view of silk* so try to print recursive getchildren of the window and see if the declaration that is there in the file is still valid at *Runtime*

    and strangely enough just printing a recursive list of children might even solve your problem.

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:16 AM.

Copyright BetaSoft Inc.