SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Junior Member
    Join Date
    Mar 2002
    Location
    Campbell, CA, USA
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Choosing not to \"see\" objects

    I am writing a script that loops through a web ui and creates thousands of objects. Now All I really need to do is click a button at the top of the screen. But as the dynamic listing of the object grows, the test gets very, very slow.

    Since I'm not really concerned with the objects themselves, and I don't really care too much about them after I create them, is there a way I can tell SilkTest to ignore them? What I think is happening is that silktest sees the objects and want's to count them or put the contents in some sort of data structure. So is there a way I can disable this behavior?

    Thanks,

    -Marc

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

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Choosing not to \"see\" objects

    If your stuff are in invisible tables and you enable the tables it will speed up.
    Assuming that silk doesn't resolve nested tables, it will certainly go faster, Otherwise bad luck for you.

    I found that 5.5 has problem with a lot of text on a page, or maybe some unique controls. It would hang there for 10 to 20 minutes depending on the size of document before doing anything. it can be seen using the windows identifier.

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

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Posts
    375
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Choosing not to \"see\" objects

    One solution would be to Custom map these objects to "Ignore".
    when u r capturing your frame file, class map these objects to Ignore.
    best of luck

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

  4. #4
    Junior Member
    Join Date
    Jan 2001
    Location
    Mill Valley, CA
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Choosing not to \"see\" objects

    Hi Marc,

    It sounds like you're creating the objects dynamically. How are you creating these objects (what specific method(s) are you using?

    Jeff

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

  5. #5
    Junior Member
    Join Date
    Mar 2002
    Location
    Campbell, CA, USA
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Choosing not to \"see\" objects

    Hmm, well I am using the built in silk methods to "create" the objects through the applications UI. The objects though are part of the application I am testing, and are not really created by silk. Basically here is the problem:

    loop iteration 1:
    Creates an object named a1
    Increments
    loop iteration 2:
    Creates an object named a2
    Increments
    ....
    loop iteration 50:
    Very long wait time while silk is reading
    all of the objects into its internal data
    structures.
    Creates an object named a50
    Increments

    What I want to do is ignore all of the objects on the screen after a certain point. These objects are NOT defined in my frame anywhere, but it seems that silk needs to "read" them anyway. And my question is how can I tell silk to ignore these objects that I don't really care about after I create, and only slow down the testcase exponentially.

    Any insight would be great. Thanks

    -Marc

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

  6. #6
    Senior Member
    Join Date
    Jul 2001
    Location
    Westford, MA, USA
    Posts
    160
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Choosing not to \"see\" objects

    Did you try recursion rather than iteration? I didn't code an example to test it or anything -- just curious.


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

  7. #7
    Junior Member
    Join Date
    Mar 2002
    Location
    Campbell, CA, USA
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Choosing not to \"see\" objects

    Not quite sure what you mean by recursion. I am just using a for loop like this

    for (looper=1; looper<=num_to_create; looper++)

    //Do create object in UI stuff

    Shouldn't matter how I'm looping, right? I could just as easily do a while loop.
    -Marc

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

  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: Choosing not to \"see\" objects

    A recursion might look similar to this:


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

  9. #9
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Choosing not to \"see\" objects

    I suggest you to re-think about your test case is doing. The speed problem is a bug since it didn't happen to me using 5.032 against the same test cases. Ex: I had to reduce my item of interest using the our search, then do a verify.


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

  10. #10
    Junior Member
    Join Date
    Mar 2002
    Location
    Campbell, CA, USA
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Choosing not to \"see\" objects

    I am using 5.03. When you say a bug, do you mean a bug in my script, or a bug in SilkTest?

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

 

 
Page 1 of 2 12 LastLast

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 04:14 AM.

Copyright BetaSoft Inc.