SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2002
    Location
    Datchet, Berkshire, UK
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Context Sensative Error Messages

    User Annan, Timothy (timothy.annan@ca.com.nospam) posted:

    ------_=_NextPart_001_01C24822.5F0DD468
    Content-Type: text/plain

    Hi all

    I have a validation check where I'm confirming the non existence of a list
    entry

    For example:

    if (list_get_item_num
    ("SysListView32","administrator",Number) == 0)


    {


    Pass = 1;

    Fail_Counter = Fail_Counter +1;


    tl_step ("List Item Check",1,"The required
    list entry did exist for record "&Validation);

    if (Logging == 1)


    {


    report_msg ("The item does
    exist within the list");

    }




    }


    else


    {


    tl_step ("List Item Check",0,"The required
    list entry does not exist for record "&Validation);

    Pass_Counter = Pass_Counter + 1;


    if (Logging == 1)


    {

    report_msg ("The item does
    not exist within the list");


    }


    }


    This works fine and the correct log entry is inserted

    However, WinRunner insers into the log also the following:

    CONTEXT SENTITIVE ERROR - LIST_GET_ITEM_NUM: "SYSLISTVIEW32" ERROR: ITEM NOT
    FOUND

    Is there anyway to turn these alerts off in the log ?

    Thanks in advance

    Tim

    ------_=_NextPart_001_01C24822.5F0DD468
    Content-Type: text/html; charset=US-ASCII
    Content-Transfer-Encoding: 7bit

    <html xmlns="urn:schemas-microsoft-comfficeffice" xmlns:w="urn:schemas-microsoft-comffice:word" xmlns="http://www.w3.org/TR/REC-html40">

    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">


    <meta name=ProgId content=Word.Document>
    <meta name=Generator content="Microsoft Word 10">
    <meta name=Originator content="Microsoft Word 10">
    <link rel=File-List href="cid:filelist.xml@01C2482A.D384D780">
    < !--[if gte mso 9]><xml>
    <o:OfficeDocumentSettings>
    <ooNotRelyOnCSS/>
    </o:OfficeDocumentSettings>
    <w:WordDocument>
    <w:SpellingState>Clean</w:SpellingState>
    <w:GrammarState>Clean</w:GrammarState>
    <wocumentKind>DocumentEmail</wocumentKind>
    <w:EnvelopeVis/>
    <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
    </w:WordDocument>
    < !--
    /* Font Definitions */
    @font-face
    {font-family:Georgia;
    panose-1:2 4 5 2 5 4 5 2 3 3;
    mso-font-charset:0;
    mso-generic-font-family:roman;
    mso-font-pitch:variable;
    mso-font-signature:647 0 0 0 159 0;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {mso-style-parent:"";
    margin:0cm;
    margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:12.0pt;
    font-family:"Times New Roman";
    mso-fareast-font-family:"Times New Roman";}
    a:link, span.MsoHyperlink
    {color:blue;
    text-decoration:underline;
    text-underline:single;}
    a:visited, span.MsoHyperlinkFollowed
    {color:blue;
    text-decoration:underline;
    text-underline:single;}
    tt
    {font-family:"Courier New";
    mso-ascii-font-family:"Courier New";
    mso-fareast-font-family:"Times New Roman";
    mso-hansi-font-family:"Courier New";
    mso-bidi-font-family:"Courier New";}
    span.EmailStyle18
    {mso-style-typeersonal-reply;
    mso-style-noshow:yes;
    mso-ansi-font-size:10.0pt;
    mso-bidi-font-size:10.0pt;
    font-family:Georgia;
    mso-ascii-font-family:Georgia;
    mso-hansi-font-family:Georgia;
    color:blue;
    font-weight:normal;
    font-style:normal;
    text-decoration:none;
    text-underline:none;
    text-decoration:none;
    text-line-through:none;}
    span.GramE
    {mso-style-name:"";
    mso-gram-e:yes;}
    @page Section1
    {size:612.0pt 792.0pt;
    margin:72.0pt 90.0pt 72.0pt 90.0pt;
    mso-header-margin:35.4pt;
    mso-footer-margin:35.4pt;
    mso-paper-source:0;}
    div.Section1
    {page:Section1;}
    < !--[if gte mso 10]>
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman";}

    <body lang=EN-US link=blue vlink=blue style='tab-interval:36.0pt'>
    <div class=Section1>

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=3 color=blue face="Times New Roman"><span
    confirming the non existence of a list entry</span></font> <font color=blue><span


    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=1 color=black face=Georgia><span
    style='font-size:9.0pt;font-family:Georgia;mso-bidi-font-family:Georgia;
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color="#0000f0" face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=red face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=red face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    size=1 color=olive face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    <span style='mso-tab-count:5'> </span>

    <span style='mso-tab-count:1'> </span>{

    <span style='mso-tab-count:6'> </span>

    <span style='mso-tab-count:2'> </span>Pass = </span></font><font
    size=1 color=olive face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    <span style='mso-tab-count:2'> </span>Fail_Counter
    = Fail_Counter +</span></font><font size=1 color=olive face=Georgia><span
    style='font-size:9.0pt;font-family:Georgia;mso-bidi-font-family:Georgia;
    style='font-size:9.0pt;font-family:Georgia;mso-bidi-font-family:Georgia;
    <span style='mso-tab-count:6'> </span>

    <span style='mso-tab-count:2'> </span></span></font><font
    size=1 color="#0000f0" face=Georgia><span style='font-size:9.0pt;font-family:
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=red face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    size=1 color=olive face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=red face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    for record &quot;</span></font><font size=1 color=black face=Georgia><span
    style='font-size:9.0pt;font-family:Georgia;mso-bidi-font-family:Georgia;
    <span style='mso-tab-count:2'> </span></span></font><span
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    size=1 color=olive face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    <span style='mso-tab-count:1'> </span><span style='mso-tab-count:
    <span style='mso-tab-count:2'> </span>{

    <span style='mso-tab-count:6'> </span>

    <span style='mso-tab-count:3'> </span></span></font><font
    size=1 color="#0000f0" face=Georgia><span style='font-size:9.0pt;font-family:
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=red face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    <span style='mso-tab-count:3'> </span>

    <span style='mso-tab-count:2'> </span>}

    <span style='mso-tab-count:13'>&nbsp ;&nbsp ;&nbsp ;&nbsp ;&nbsp ;&nbsp ;&nbsp ; </span>

    <span style='mso-tab-count:5'> </span>

    <span style='mso-tab-count:1'> </span>}

    <span style='mso-tab-count:5'> </span>

    <span style='mso-tab-count:1'> </span></span></font><span
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    <span style='mso-tab-count:5'> </span>

    <span style='mso-tab-count:1'> </span>{

    <span style='mso-tab-count:5'> </span>

    <span style='mso-tab-count:2'> </span></span></font><font
    size=1 color="#0000f0" face=Georgia><span style='font-size:9.0pt;font-family:
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=red face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    size=1 color=olive face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=red face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    exist for record &quot;</span></font><font size=1 color=black face=Georgia><span
    style='font-size:9.0pt;font-family:Georgia;mso-bidi-font-family:Georgia;
    <span style='mso-tab-count:2'> </span>Pass_Counter
    = Pass_Counter + </span></font><font size=1 color=olive face=Georgia><span
    style='font-size:9.0pt;font-family:Georgia;mso-bidi-font-family:Georgia;
    style='font-size:9.0pt;font-family:Georgia;mso-bidi-font-family:Georgia;
    <span style='mso-tab-count:5'> </span>

    <span style='mso-tab-count:2'> </span></span></font><span
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    size=1 color=olive face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    <span style='mso-tab-count:6'> </span>

    <span style='mso-tab-count:2'> </span>{

    <span style='mso-tab-count:3'> </span></span></font><font
    size=1 color="#0000f0" face=Georgia><span style='font-size:9.0pt;font-family:
    size=1 color=black face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    color=red face=Georgia><span style='font-size:9.0pt;font-family:Georgia;
    the list&quot;</span></font><font size=1 color=black face=Georgia><span
    style='font-size:9.0pt;font-family:Georgia;mso-bidi-font-family:Georgia;
    <span style='mso-tab-count:6'> </span>

    <span style='mso-tab-count:2'> </span>}

    <span style='mso-tab-count:6'> </span>

    <span style='mso-tab-count:1'> </span>}<br style='mso-special-character:
    < ![if !supportLineBreakNewLine]><br style='mso-special-character:line-break'>

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:
    entry is inserted<o></o></span></font></p>

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:
    the following:<o></o></span></font></p>

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:
    "SYSLISTVIEW32" ERROR: ITEM NOT FOUND<o></o></span></font></p>

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:
    in the <span class=GramE>log ?</span><o></o></span></font></p>

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    <p class=MsoNormal><font size=2 color=blue face=Georgia><span style='font-size:

    < !-- |**|begin egp html banner|**| -->

    Tim Annan

  2. #2
    Member
    Join Date
    Jun 2001
    Location
    Noida
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Context Sensative Error Messages

    User Rajesh Balachandran (rajesh.balachandran@india.birlasoft.com.nospam) posted:

    ------_=_NextPart_001_01C24825.46D3A320
    Content-Type: text/plain;
    charset="iso-8859-1"

    Use exception handlers to supress the messages

    Rajesh Balachandran

    <http://indiaquickplace01.ge.com/QuickPlace/gso-india/Main.nsf/$defaultview/
    E5625BD1B8F3E85005256823005AAF05/$FILE/Image.Image_GElogo-animated.gif?OpenE
    <file:///C:/Documents%20and%20Settings/rajesh.balachandran/Application%20Dat
    A GE Global Development Center
    Software Technology Park
    Noida-201301.
    Phone : +91 118 4456650 (8 Lines ) Extn. 3301
    Dial Comm: + 901-4064
    Fax : +91 120 4450819 / 4450482
    (Common Fax Number - please mark recipient's name clearly!)
    mailto:rajesh.balachandran@india.birlasoft.com
    Rajesh Balachandran

  3. #3
    Senior Member
    Join Date
    Jun 2002
    Location
    Hadera, Israel
    Posts
    313
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Context Sensative Error Messages

    User Roman Zilber (romanz@enigma.com.nospam) posted:

    ------_=_NextPart_001_01C24823.A9EF1B30
    Content-Type: text/plain;
    charset="iso-8859-1"

    HI!

    you can (1.) get number of items in the list and (2.) iterate all the items
    and (2.1) compare anyone with "administrator".

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

    Re: Context Sensative Error Messages

    User Khan ?Navaz (khan2navaz@yahoo.com.nospam) posted:

    Hi tim,
    You can handle that using the tsl exception
    statement.
    define_tsl_exception();
    here u select the list_get_item function to be
    handled.
    and in the handler function write the reporting thing.
    This is the best way to handle it.

    Thanks,
    verti.


    --- Roman Zilber <romanz@enigma.com> wrote:
    <http://rd.yahoo.com/M=229641.2166546...web/S=17072819 http://groups.yahoo.com/group/winrunner/?yguid=7144566


    __________________________________________________

 

 

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 10.71%
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 03:11 PM.

Copyright BetaSoft Inc.