SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jul 2004
    Location
    sec-39,G-60,Noida,U.P
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Doing DataDriven testing for an action which is called within another action

    I am facing problem in running an action which reads multiple rows from the runtime data table called from another action.

    >If Test Setting of the action within which other action is called is “one iteration only” ,then the test action which reads multiple rows from the data table with Test Setting “Run on all rows” is executed only once(i.e read the the first row of the table) and execution of the action from which other action is called ends as its Test Setting is for “one iteration only”.

    > If Test Setting of the the action within which other action is called is “Run on all rows” ,then the test action which reads multiple rows from the data table with Test Setting “Run on all rows”are executed as many times as the no. of rows in the runtime DataTable,but every time it reads the first row of the DataTable.

    The following code gives shows the flow of the the action within which other action is called

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
    init()
    RunAction &quot;Login [reusablecomponent]&quot;, oneIteration
    RunAction &quot;itirate [Test3]&quot;, oneIteration
    'itirate [Test3] is the action which reads multiple rows from the table
    RunAction &quot;Logout [reusablecomponent]&quot;, oneIteration
    destroy()</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">The following code is of the called action which reads multiple data from the data table
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
    Browser(&quot;Questra Smart&quot.Page(&quot;Questra Smart_2&quot.Frame(&quot;tabArea&quot.Link(&quot;Administration&quot.Click

    Browser(&quot;Questra Smart&quot.Page(&quot;Questra Smart_2&quot.Frame(&quot;explorer&quot.Link(&quot;Add&quot.Click

    Browser(&quot;Questra Smart&quot.Page(&quot;Questra Smart_2&quot.Frame(&quot;content&quot.WebEdit(&quot;name&quot.Set DataTable(&quot;Name&quot;, dtGlobalSheet)

    Browser(&quot;Questra Smart&quot.Page(&quot;Questra Smart_2&quot.Frame(&quot;content&quot.WebEdit(&quot;description&quot.Set DataTable(&quot;Description&quot;, dtGlobalSheet)

    Browser(&quot;Questra Smart&quot.Page(&quot;Questra Smart_2&quot.Frame(&quot;content&quot.WebButton(&quot;Add&quot.Click

    Browser(&quot;Questra Smart&quot.Page(&quot;Questra Smart_2&quot.Sync</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">The run time Data Table has two columns and three rows

    Thanks
    Soubhagya
    Doing DataDriven for an action which is called within another action Doing DataDriven testing for an action which is called within another action

  2. #2
    Member
    Join Date
    Jul 2004
    Location
    San Clemente, CA
    Posts
    157
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Doing DataDriven testing for an action which is called within another action

    hi soubhagya,

    You can apply normal programming skills on that runtime xls sheet. just grab the values row by row, use if condition if it contain like that.

    i dont know it is exactly working or not. Try it.

    Thanks
    Subbu.
    A Test Engineer should be a Programmer.

 

 

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.54%
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 07:54 PM.

Copyright BetaSoft Inc.