SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    BMD
    BMD is offline
    Advanced Member
    Join Date
    Mar 2002
    Location
    Earth, USA, New York, Western
    Posts
    759
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is all this.....can this be cleaned up?????

    [-] testcase Test1 () appstate none
    [-] recording
    [ ] Taskbar.SetActive ()
    [ ] Taskbar.Start.MenuSelect (14, 14, "")
    [ ] Taskbar.Start.TypeKeys ("<Up 7>")
    [ ] Taskbar.Start.TypeKeys ("<Right>")
    [ ] Taskbar.Start.TypeKeys ("<Up 18>")
    [ ] Taskbar.Start.TypeKeys ("<Right>")
    [ ] Taskbar.Start.TypeKeys ("<Enter>")
    [-] recording
    [ ] MainWin("GroupWise*|*Mailbox|$C:\Novell\GroupWise\ GrpWise.exe").SetActive ()
    [ ] MainWin("GroupWise*|*Mailbox|$C:\Novell\GroupWise\ GrpWise.exe").Move (47, 14)
    [ ] MainWin("GroupWise*|*Mailbox|$C:\Novell\GroupWise\ GrpWise.exe").TreeView("#1|$444").Select ("/BRUCE D*****/Mailbox")
    [ ] MainWin("GroupWise*|*Mailbox|$C:\Novell\GroupWise\ GrpWise.exe").ListView("#1|$1").Select (";T***** Murali <muralit*****@yahoo.com>■Re: India Trip■08/22/02 09:23AM;T***** Murali <muralit*****@yahoo.com>;Re: India Trip;08/22/02 09:23AM")
    [ ] MainWin("GroupWise*|*Mailbox|$C:\Novell\GroupWise\ GrpWise.exe").ListView("#1|$1").Select (";MURALI T*****■Re: India■08/21/02 02:26PM;MURALI T*****;Re: India;08/21/02 02:26PM")
    [ ] MainWin("GroupWise*|*Mailbox|$C:\Novell\GroupWise\ GrpWise.exe").ListView("#1|$1").Select (";M**** H**** <H****@****-process-institute.com>■Practical Software Process Improvement Conference■08/21/02 09:24AM;M**** H**** <H**@***-process-institute.com>;Practical Software Process Improvement Conference;08/21/02 09:24AM")
    [-] recording
    [ ] MainWin("GroupWise*|*Silk E-Mails|$C:\Novell\GroupWise\GrpWise.exe[1]").SetActive ()
    [ ] MainWin("GroupWise*|*Silk E-Mails|$C:\Novell\GroupWise\GrpWise.exe[1]").ListView("#1|$1").Click (1, 138, 571)
    [ ] MainWin("GroupWise*|*Silk E-Mails|$C:\Novell\GroupWise\GrpWise.exe[1]").Move (91, 14)
    [ ] MainWin("GroupWise*|*Mailbox|$C:\Novell\GroupWise\ GrpWise.exe[1]").TreeView("#1|$444").Select ("/BRUCE D*****/Mailbox")
    [ ] MainWin("GroupWise*|*Mailbox|$C:\Novell\GroupWise\ GrpWise.exe[2]").CustomWin("[ReBarWindow32]#1|$27").ToolBar("#1|$0").PushButton("#5|$167").Cl ick ()
    [ ] Taskbar.SetActive ()
    [ ] Taskbar.PageList("#1|$1").MenuSelect (641, 11, "#8/#1/#1/#1")
    [ ] MainWin("Mail To:|$C:\Novell\GroupWise\GrpWise.exe[1]").SetActive ()
    [ ] MainWin("Mail To:|$C:\Novell\GroupWise\GrpWise.exe[1]").CustomWin("[ABEntryField10]#2|$10010").TextField("#1|$4115").SetText ("d*****")
    [ ] MainWin("Mail To: D*****, BRUCE|$C:\Novell\GroupWise\GrpWise.exe[1]").TextField("#2|$10009").SetPosition (1, 1)
    [ ] MainWin("Mail To: D*****, BRUCE|$C:\Novell\GroupWise\GrpWise.exe[1]").TextField("#2|$10009").SetText ("Test")
    [ ] MainWin("Mail To: D*****, BRUCE|$C:\Novell\GroupWise\GrpWise.exe[1]").TextField("#2|$10009").TypeKeys ("<Tab>")
    [ ] MainWin("Mail To:|$C:\Novell\GroupWise\GrpWise.exe[1]").TextField("#3|$10008").TypeKeys ("Testing this was sent by Segue Software<Enter>")
    [ ] MainWin("Mail To:|$C:\Novell\GroupWise\GrpWise.exe[1]").TextField("#3|$10008").TypeKeys ("<Enter>")
    [ ] MainWin("Mail To:|$C:\Novell\GroupWise\GrpWise.exe[1]").TextField("#3|$10008").TypeKeys ("Bruce *. D*****")
    [ ] MainWin("Mail To: D*****, BRUCE|$C:\Novell\GroupWise\GrpWise.exe[1]").PushButton("#1|$10005").Click ()
    [ ] MainWin("Mail To: D******, BRUCE|$C:\Novell\GroupWise\GrpWise.exe[1]").DialogBox("Signature").SetActive ()
    [ ] MainWin("Mail To: D******, BRUCE|$C:\Novell\GroupWise\GrpWise.exe[1]").DialogBox("Signature").PushButton("Don't Add|$7").Click ()
    [ ]


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

  2. #2
    BMD
    BMD is offline
    Advanced Member
    Join Date
    Mar 2002
    Location
    Earth, USA, New York, Western
    Posts
    759
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is all this.....can this be cleaned up?????

    OK, I should add that is was recorded in GroupWise and it sends an e-mail to me. It is VERY difficult to read. Is there a way to clean this up???????

    Thanks, and sorry, I hit send too soon.
    Bruce.

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

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

    Re: What is all this.....can this be cleaned up?????

    In a word, yes.

    You've just hit the "joys of recording". While somewhat useful to help you get a handle on how things work initially, and to get a handle on subtle things later, the record is mostly a glitzy way to demo Silk.

    After you have a "good" frame file for your app, all the long-winded stuff (e.g. MainWin("GroupWise*|*Mailbox|$C:\Novell\GroupWise\ GrpWise.exe")) becomes something like "GroupWise" and ListView("#1|$1") becomes "MessageList" and TreeView("#1|$1") becomes "FolderList" ... etc.

    What you're seeing is the "raw" window identifier for each piece of the app.

    What you want to do is record window declarations for the app, clean those up, then try the recorder with those decls loaded. Frankly, it's been so long since I used the recorder, I don't recall whether this makes it significantly better, but it sure won't hurt!

    Another thing you might want to consider is turning OFF multi-tags. They just get in the way. That's what causes the "#1|$1" stuff. Those are the index and window id for the object. You only need one to really get a hold on an object (usually).

    Hope this helps get you to the next step ...

    Good Luck!


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

  4. #4
    Senior Member
    Join Date
    Dec 2000
    Location
    Phoenix, AZ
    Posts
    371
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is all this.....can this be cleaned up?????

    and in the future if you submit your message on this forum and have more to add you can click Edit at the top of the message to add to it.

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

  5. #5
    AJ
    AJ is offline
    Moderator AJ's Avatar
    Join Date
    Jun 1999
    Location
    San Jose, CA
    Posts
    1,691
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is all this.....can this be cleaned up?????

    This is a script that somebody who knows nothing about SilkTest recorded!

    They did not create a Windows Declaration file which is obviously a thing that novices do.

    This script is basically a throw-away one.

    Start over by creating a good solid GUI map of Groupwise and then start recording scripts.

    ------------------
    AJ Alhait
    BetaSoft Inc.
    AJ Alhait
    BetaSoft Inc.

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

    Re: What is all this.....can this be cleaned up?????

    I'd suggest that you try a stroll through the tutorial. There should be a .PDF file in the <Silk>/Documentation directory called SilkTestTutorial.pdf.

    While pretty rudimentary, it does cover the basics. The area you're currently "stuck" in is the one called "Capturing Your Application".

    What you could do is take a quick trip through the tutorial, then use your app (GroupWise) in place of the one in the tutorial to get a feel for how to tackle a simple problem. Then, build from there.

    The whole process is typically along the lines of:

    1) Capture your app's window decls
    2) Massage the daylights out of them
    3) Add a bunch of methods / functions
    4) Write a bunch of scripts

    Yeah, that's an oversimplification, but it really is pretty close to reality. The tricky bits come into play when you have an app with custom widgets (things that Silk can't see into or manipulate). That'll all come later.

    Hang in there -- it's only daunting for the first 5 years '<grin>' ...

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

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

    Re: What is all this.....can this be cleaned up?????

    'Chill', Bruce,

    and welcome to the group.

    Silk ain't an erector-set product where you just ignore the legalese (well actually, you can skip that part) and jump right in and be productive. Gettin' bolt A lined up with slot-B in the whizzit really is important.

    The best place to start is with one of the tutorials and a sample application that best represents the eventual environment you'll be working with.

    Then work through the User's Guide to see what-does-what and skim the Language Reference to understand the details of the various functions, classes, and methods you run into.

    Experiment a bit while the stress is low and the fun quotient of a new tool is high. After classes, when the boss thinks you know something, the real work begins.


    John


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

  8. #8
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: What is all this.....can this be cleaned up?????

    "...can this be cleaned up???"
    The answer is YES.
    But before you do that, you may want to consider looking at the QuickStart Wizard which will give you a little bit more guidance as a novice user. You get to it by selecting File/New from the main menu and then clicking on the 'blue' icon (like a wizard's hat) displayed below the cancel button. This may save you a lot of time since you should see a lot less things to clean up, depending on how much customization is going on in your application.

    You didn't mention what version of SilkTest you have but I'm assuming that this Wizard option is available to you.

    Even on your training classes, you may not see many ways of cleaning these things up since the application(s) are pretty much standard, very few custom objects.

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

  9. #9
    Senior Member
    Join Date
    Jun 2000
    Location
    Sunyyvale CA USA
    Posts
    422
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is all this.....can this be cleaned up?????

    it happens and this is one way of learning Silk Test. visit www.proactiveqa.com for basic info on Silk

    ------------------
    Sree
    Sree

  10. #10
    Senior Member
    Join Date
    May 2002
    Posts
    448
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is all this.....can this be cleaned up?????

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Bruce:
    Is there a way to clean this up??????? <HR></BLOCKQUOTE>

    Hello Bruce,

    Based on what has been said so far it is evident that this is your first shot at SilkTest. Knowing that your training begins in Sept. it is an excellent idea, as you have mentioned, to get a hang of the tool and the language. We may be able to help you on several fronts, but in order to do so there are some things that in my opinion need to be clarified.<UL TYPE=SQUARE><LI>Is this your first shot at any automation tool? Or have you used any others? <LI>What about your understandings of the concepts and basics of automation or are you a beginner altogether ?<LI>Is the script that you have posted been created by you or is it a one you are using for reference<LI>Have you gone through the initial tutorials or otherwise ?[/list]

    Sone of this will only help us help you. As far as direct answer to your question is concerned, assuming that by cleaning up you meant to say more readable and not the (number of characters or anything else) yes it is possible. The script that you have posted is one created by using the Record-Playback feature of the tool. SilkTest has its way of recognizing the objects of the application. It does so by assigning some attributes to the objects of the application. There can be more than one attribute to a single object. When using the Record-Playback feature SilkTest records user actions on the application and stores them in executable statements using the attributes that it assigned to recognize the objects uniquely.

    The other way of goin about this is creating a declaration or Graphics User Interface (GUI) map, with the statements that assign the attributes to the objects of the application so that they can be referred to in a unique way. So if this approach is taken the statements in your script may be reduced to something like,

    MainWin.SetActive ()
    MainWin.Move (47, 14)
    MainWin.TreeView1.Select ("/BRUCE D*****/Mailbox")
    MainWin.ListView1.Select ("(";T***** Murali ■Re: India Trip■08/22/02 09:23AM;T***** Murali ;Re: India Trip;08/22/02 09:23AM") ... etc

    Bruce, one other thing this forum is THE place to find the most relevant information and tips. So stick to it.

    Best of luck and do keep us posted on your progress.


    ------------------
    never say die
    Life, that dares send, A challenge to his end,
    And when it comes say, Welcome friend.

 

 
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 03:47 PM.

Copyright BetaSoft Inc.