SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    custom verification points

    Hi,

    Could any body tell me where we will exactly use customized verfication points in real time. There are certain functions in Robot like SQAVPGetCurrentBaselineFilename, SQAVPGetActualFileName etc. Pls give me a theoritical example about where to use custom VP's in real time.

    Regards,
    Sainath S.V.

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Montreal, QC, Canada
    Posts
    366
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: custom verification points

    You can create your own CSV files and put them in the Baseline folder (representing let's say results of a database query), you can get to this file programatically using the SQAVPGetCurrentBaselineFilename command and put it in the log folder structure using the SQAVpGetBaselineFileName command which will place a copy of the baseline file into the log currently being written to (as it would with a out of the box property or grid VP) and then when you generate a comparable file (in my example a CSV file) it will generate an actual filename using some random characters to make it unique (as it would with an out of the box property or grid VP). Result is that you can view the results of the file verification in the log viewer using SQAVpLog.

    I have a function you can look at on the RationalUsers site which uses these dsLogFileCompare (part of the DataServices library). Here's the meat:

    'Copy the actual results file to the log directory
    VpCurrBaseline = SQAVpGetActualFileName (sVPName, sFileType)
    FileCopy sActualFile, VPCurrBaseline

    'Copy the baseline file to the log directory
    VpBaseline = SQAVpGetBaselineFileName(sVPName, sFileType)
    FileCopy sBaselineFile, VpBaseline

    sFiles = "File1=" & VpBaseline & "; File2=" & VPCurrBaseline

    'Check whether files are the same
    SQASuspendLogOutput
    Result = FileVP (Compare, sFiles, "VP=" & sVPName)
    SQAResumeLogOutput

    'Log results, this will enable the user to double click and open results in logviewer
    If Result = False then
    SQAVPLog sqaFail, sVPName, "Custom VP", VpBaseline, VPCurrBaseline
    dsLogFileCompare = sqaFail
    Else
    SQAVPLog sqaPass, sVPName, "Custom VP", VpBaseline, VPCurrBaseline
    dsLogFileCompare = sqaPass
    End if


    Max

  3. #3
    Junior Member
    Join Date
    Dec 2004
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: custom verification points

    Hi Max,

    Thanks a lot for ur explanation with an example.

    Regards,
    Sainath S.V.

 

 

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 11.11%
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 12:02 PM.

Copyright BetaSoft Inc.