SPONSORS:






User Tag List

Results 1 to 7 of 7

Thread: sCmdLine

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    159
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    sCmdLine

    In my frame.inc file , there is a line :

    const sCmdLine ="C:\program files\myapp.exe"

    Can I reference this constant sCmdLine in my script.t file?

    I tried adding the line
    "use frame.inc" in my .t file.

    But the compiler complains "sCmdLine variable not defined"

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: sCmdLine

    Try adding it under Options \ Runtime in the "Use Files" field instead of in a use statement in the script.
    Tom

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Location
    Waltham, MA
    Posts
    107
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: sCmdLine

    I see two problems.

    1) The line in you script file should look like:
    use "frame.inc"

    2) When referencing the sCmdLine variable, it should look like:
    Window.sCmdLine

  4. #4
    Senior Member
    Join Date
    Sep 2000
    Posts
    159
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: sCmdLine

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by BostonSilk:
    I see two problems.

    1) The line in you script file should look like:
    use "frame.inc"

    2) When referencing the sCmdLine variable, it should look like:
    Window.sCmdLine
    <HR></BLOCKQUOTE>

    I included lines:
    use "frame.inc"

    and

    Window.sCmdLine

    But getting compile error
    "variable sCmdLine not defined"

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: sCmdLine

    Raul,

    I am pretty sure that Frame files are mostly used for Web Testing.
    (I have never used them)

    I think that you are testing a standalone Java application.

    I would suggest that you stay with the ".t" file only for now.

    -Rob
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  6. #6
    Senior Member
    Join Date
    Sep 2000
    Posts
    159
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: sCmdLine

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

    I am pretty sure that Frame files are mostly used for Web Testing.
    (I have never used them)

    I think that you are testing a standalone Java application.

    I would suggest that you stay with the ".t" file only for now.

    -Rob
    <HR></BLOCKQUOTE>

    Actually, frame files are used with Java Apps. I haven't tested Web Apps but Silk stores all the control properties in a frame .inc file.

    So basically, I have a Constant String data type in the frame.inc file and would like
    to use that value in my .t file.

  7. #7
    Senior Member
    Join Date
    Jun 2000
    Location
    Waltham, MA
    Posts
    107
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: sCmdLine

    Raul,
    You should be able to easily use that constant. I do this all the time.

    Be sure that at the top of your .t file, you have the line:
    use "frame.inc" - Of course, making sure to include the full path if necessary.

    Then, in your testcase, you can reference the sCmdLine very easily.
    For example, if your frame.inc file has the MainWin declared with a name such as:

    window JavaMainWin MyApp
    const sCmdLine = "C:\App\MyApp.exe"

    In a testcase:
    print (MyApp.sCmdLine)
    or
    STRING sCommand = MyApp.sCmdLine

    Hope this helps clarify things.

    [This message has been edited by BostonSilk (edited 02-06-2001).]

 

 

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 06:01 AM.

Copyright BetaSoft Inc.