SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Data-Driven

  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Data-Driven

    User Aidy Rutter (AidyR@TrustMarque.com.nospam) posted:

    Hi,

    I've been thinking about data-driven testing. All I am testing is the
    caption property of 300 forms. At the moment I've got 300 .rec files calling
    procedures from an sbl.
    It is the same navigation, it is just different options that I pick in
    drop-down lists to get to a specific form.

    Could I just write one navigation script, with 300 different test inputs and
    verification points in an access db. If I could, any ideas on how to do
    this?

    Aidy


    ---

  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Data-Driven

    User Crunk John (ext3jpc) (ext3jpc@ups.com.nospam) posted:

    Is the caption of the form based on the selection in the list box? If you
    answer yes, then you should be able to do this in one script fairly easily.
    Consider using a loop to iterate through the items in the listbox and
    execute each one.

    John


  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Data-Driven

    User Aidy Rutter (AidyR@TrustMarque.com.nospam) posted:

    And where do I put the VP's, and how could I see whether they pass or fail?

    Aidy

  4. #4
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Data-Driven

    User Crunk John (ext3jpc) (ext3jpc@ups.com.nospam) posted:

    You could either create them on the fly or do as suggested in another
    discussion and use SQAGETProperty to verify the caption.

    John


  5. #5
    Junior Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Data-Driven

    Hi,

    If I understand your question you dont need 300 .rec files. You only need one .rec file, and a datapool with 300 records with 2 columns each(the item to select from the drop-down list, and the caption property-expected value- to check).

    Put navigation in a loop. Each cycle load the drop-down list option in a variable and the expected property in another. Use SQAGetProperty command to obtain the actual caption property and check the value against the one from the datapool. You can send a LogMessage to the log with the result pass/fail depending on the result of your comparison.

    You dont need standard VP. I hope this will work.

    REgards
    Sara

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

  6. #6
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Data-Driven

    User (david.marsh@gb.abb.com.nospam) posted:


    We have typically function & a spreadsheet saved as a csv file for each
    screen.

    Loop around reading each line, assign to variables by using the commas to
    split the line up.

    If the variable is not empty then do the action, ie check box, edit box and
    so on, if not skip onto the next item.

    Checking the object is enabled before we try, checking the correct window
    is in focus and so on.

    If we get an error try to grab the text and shut the box.

    Write our own logs to a csv file (I am still looking for that stuff Aidy).

    btw any chance 45k+ & a car + full benefits package?


    ---

  7. #7
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Data-Driven

    User Crunk John (ext3jpc) (ext3jpc@ups.com.nospam) posted:

    I must be asleep, but I am totally lost as to what he said???

    John


  8. #8
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Data-Driven

    User Simon P Garnett (simong@squaresum.com.nospam) posted:

    I think David is talking about interacting with the screen based on test
    inputs defined in his csv file.
    As Aidy only wants to check the caption (please correct if wrong) I
    don't think that would be the best approach.

    He could still use the csv file idea though

    eg the csv file could look like... (I don't know what your system does
    Aidy so lets imagine its mortgages)

    '''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''
    ''''''''''
    Customer Mortgage type New window caption to check for

    John Endowment Endowment Mortgage details for
    customer John
    Simon Repayment Repayment Mortgage details for
    customer Simon
    Aidy Repayment Repayment Mortgage details for
    customer Aidy
    '''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''
    ''''''''''

    So you just iterate through the file and each time you select the
    customer combo and mortgage combo as defined in the csv file for that
    particular iteration. Then you check the window caption in the new
    window using sqsgetproperty (as suggested by John). Then move onto the
    next line in the csv file i.e. iterate.

    You could even have a column in the csv called result and write the
    actual result to it for ease of checking/debugging.

    Does this help?

    Simon.

  9. #9
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Data-Driven

    User Crunk John (ext3jpc) (ext3jpc@ups.com.nospam) posted:

    I think that this is way more complicated that it needs to be. If I
    understand right there is a listbox on the screen and a selection is made
    from the listbox. Aidy uses his script to capture the selection made which
    then is in the caption of the screen that comes up next. I am saying that
    you can do this in a loop

    Get the number of items in list box here...

    While (I < number of items)

    Select listbox(i)
    Verify the caption of the screen with SQAGETProperty command
    Log meaningful message if Caption is not right
    Navigate back to listbox screen
    Increment i
    loop

    You can fill in the appropriate logic above, but I am saying that if you do
    this you will do the same thing as the 300 scripts do now.

    John


  10. #10
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Data-Driven

    User Aidy Rutter (AidyR@TrustMarque.com.nospam) posted:

    Yeah, I get you. I could put this data in Excel. Could I use MarkB's
    function to connect to Excel. Or could I use datapools?


    Aidy

 

 
Page 1 of 3 123 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
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 01:58 PM.

Copyright BetaSoft Inc.