SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Senior Member
    Join Date
    Sep 2001
    Location
    Dublin
    Posts
    232
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple inc files.

    I have inherited a project to finish scripting our product from a former employee. He has an extensive and efficient inc created for a large section of our app. A few weeks ago I began learning Silk Test in order "to pick up where he left off" (bearing in mind he had over a years experience and a training course!). I created my own inc file and started deveolping tset cases for a specific are within the product, it took me a few days, but thankfully with some help I managed to get it going, I have now successfully completed 24 secure test scripts relating to that area. Basically, what I wan tto do is combine all the testcases into one .t and use both the .inc files as I could bare to start over. I have done too much work already. Can I use both inc files and using the Use \\dir command or is it possible to just copy and past the declarations into one inc file.
    Appreciate the help....



    ------------------
    ================
    Thanks,
    Tomás.

    Quis Custodiet ipsos custodes

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple inc files.

    You can definitely combine the contents of your .inc files into one larger .inc file, and paste all your testcases into one .t file if you want to.
    As far as I can tell, silktest doesn't really care where stuff (window declarations, functions, testcases, etc.) is declared, as long as you have the Use statements to tell it where to find what it needs.

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

  3. #3
    Senior Member
    Join Date
    Sep 2001
    Location
    Dublin
    Posts
    232
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple inc files.

    Thanks for that, that's what I was hoping for...

    Happy Dayz...

    ------------------
    ================
    Thanks,
    Tomás.

    Quis Custodiet ipsos custodes

  4. #4
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple inc files.

    You can combine the two .inc files, but it might be better to just use a use statement to refer to both from one .t file. This way you can keep what he developed and what you developed apart.

    MikeF

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

  5. #5
    Senior Member
    Join Date
    Sep 2001
    Location
    Dublin
    Posts
    232
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple inc files.

    I have combined them both now however, I am now getting a partner.exe error and silik 5.0.3 crashs ! No other programs running....
    Opened new thread about this...I dunno now, I hav changed over and acll the two separate inc file from within one .t file now using the use ("file.inc") function.
    Is this funcionally correct?

    ------------------
    ================
    Thanks,
    Tomás.

    Quis Custodiet ipsos custodes

  6. #6
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple inc files.

    Yes use the "use d:\file.inc" functionality to do this.

    MikeF

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

  7. #7
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple inc files.

    You're better off using Runtime Options to refer to the main .inc file, then you can 'use "otherfile.inc"' from your main", inc file. This is better than from a .t file, since the include files will always be "compiled" when referenced from Runtime Options. If you add inc files from scripts, you have to remember to compile the script to get the latest declarations, etc.

    Hope this helps


    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

  8. #8
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple inc files.

    I don't want to disagree with our moderator, but I have found that the fewer changes I make in the options by hard coding the data, the better off I am. I have found that any way I can set options from within my script or .inc files is easier because you do not have to remember to change them when you run or develop another script, when you move the script to a new machine, you do not not to change the settings as they are set in the script.

    Just a differnet way of looking at things.

    MikeF

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

 

 

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 11:07 AM.

Copyright BetaSoft Inc.