how to execute a loop in a loop in Robot Framework [duplicate]












0















This question already has an answer here:




  • Nested loop in RobotFramework

    3 answers




An example of what I need: I have a list of dropdown box and each of the dropdown has 'n' numbers of list of items. I have to verify that all the drop down items are clickable in all the dropdowns box.










share|improve this question













marked as duplicate by Bryan Oakley robotframework
Users with the  robotframework badge can single-handedly close robotframework questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 14 '18 at 15:33


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • Given that you've created a new question it might be good to remove this one.
    – A. Kootstra
    Nov 14 '18 at 18:43
















0















This question already has an answer here:




  • Nested loop in RobotFramework

    3 answers




An example of what I need: I have a list of dropdown box and each of the dropdown has 'n' numbers of list of items. I have to verify that all the drop down items are clickable in all the dropdowns box.










share|improve this question













marked as duplicate by Bryan Oakley robotframework
Users with the  robotframework badge can single-handedly close robotframework questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 14 '18 at 15:33


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • Given that you've created a new question it might be good to remove this one.
    – A. Kootstra
    Nov 14 '18 at 18:43














0












0








0








This question already has an answer here:




  • Nested loop in RobotFramework

    3 answers




An example of what I need: I have a list of dropdown box and each of the dropdown has 'n' numbers of list of items. I have to verify that all the drop down items are clickable in all the dropdowns box.










share|improve this question














This question already has an answer here:




  • Nested loop in RobotFramework

    3 answers




An example of what I need: I have a list of dropdown box and each of the dropdown has 'n' numbers of list of items. I have to verify that all the drop down items are clickable in all the dropdowns box.





This question already has an answer here:




  • Nested loop in RobotFramework

    3 answers








robotframework






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 '18 at 10:08









Venkatesh

375




375




marked as duplicate by Bryan Oakley robotframework
Users with the  robotframework badge can single-handedly close robotframework questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 14 '18 at 15:33


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by Bryan Oakley robotframework
Users with the  robotframework badge can single-handedly close robotframework questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 14 '18 at 15:33


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Given that you've created a new question it might be good to remove this one.
    – A. Kootstra
    Nov 14 '18 at 18:43


















  • Given that you've created a new question it might be good to remove this one.
    – A. Kootstra
    Nov 14 '18 at 18:43
















Given that you've created a new question it might be good to remove this one.
– A. Kootstra
Nov 14 '18 at 18:43




Given that you've created a new question it might be good to remove this one.
– A. Kootstra
Nov 14 '18 at 18:43












2 Answers
2






active

oldest

votes


















2














You can put a loop inside a keyword. Then in another the loop, call that keyword



Some thing like this



*** Test Cases ***
Run Test
:FOR ${i} IN ${List}
Keyword A

*** Keywords ***
Keyword A
# do your loop here





share|improve this answer





























    -1














    *** Test Cases ***
    Test Case

    @{list}= Create List
    ${dbvalues}= SQL Query
    :FOR ${variable} IN {dbvalues}
    ${Value}= Test Step1 ${variable}
    ..........
    .........
    Append To list ${list} ${Value}





    share|improve this answer

















    • 4




      Welcome to StackOverflow! Your answer need more explanation about how the code works to be a good answer.
      – Foo
      Nov 14 '18 at 11:05






    • 1




      This example doesn't show a "loop in a loop", and doesn't contain any explanation of why there is no second loop.
      – Bryan Oakley
      Nov 14 '18 at 15:32


















    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    You can put a loop inside a keyword. Then in another the loop, call that keyword



    Some thing like this



    *** Test Cases ***
    Run Test
    :FOR ${i} IN ${List}
    Keyword A

    *** Keywords ***
    Keyword A
    # do your loop here





    share|improve this answer


























      2














      You can put a loop inside a keyword. Then in another the loop, call that keyword



      Some thing like this



      *** Test Cases ***
      Run Test
      :FOR ${i} IN ${List}
      Keyword A

      *** Keywords ***
      Keyword A
      # do your loop here





      share|improve this answer
























        2












        2








        2






        You can put a loop inside a keyword. Then in another the loop, call that keyword



        Some thing like this



        *** Test Cases ***
        Run Test
        :FOR ${i} IN ${List}
        Keyword A

        *** Keywords ***
        Keyword A
        # do your loop here





        share|improve this answer












        You can put a loop inside a keyword. Then in another the loop, call that keyword



        Some thing like this



        *** Test Cases ***
        Run Test
        :FOR ${i} IN ${List}
        Keyword A

        *** Keywords ***
        Keyword A
        # do your loop here






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 '18 at 10:16









        thanh le

        1596




        1596

























            -1














            *** Test Cases ***
            Test Case

            @{list}= Create List
            ${dbvalues}= SQL Query
            :FOR ${variable} IN {dbvalues}
            ${Value}= Test Step1 ${variable}
            ..........
            .........
            Append To list ${list} ${Value}





            share|improve this answer

















            • 4




              Welcome to StackOverflow! Your answer need more explanation about how the code works to be a good answer.
              – Foo
              Nov 14 '18 at 11:05






            • 1




              This example doesn't show a "loop in a loop", and doesn't contain any explanation of why there is no second loop.
              – Bryan Oakley
              Nov 14 '18 at 15:32
















            -1














            *** Test Cases ***
            Test Case

            @{list}= Create List
            ${dbvalues}= SQL Query
            :FOR ${variable} IN {dbvalues}
            ${Value}= Test Step1 ${variable}
            ..........
            .........
            Append To list ${list} ${Value}





            share|improve this answer

















            • 4




              Welcome to StackOverflow! Your answer need more explanation about how the code works to be a good answer.
              – Foo
              Nov 14 '18 at 11:05






            • 1




              This example doesn't show a "loop in a loop", and doesn't contain any explanation of why there is no second loop.
              – Bryan Oakley
              Nov 14 '18 at 15:32














            -1












            -1








            -1






            *** Test Cases ***
            Test Case

            @{list}= Create List
            ${dbvalues}= SQL Query
            :FOR ${variable} IN {dbvalues}
            ${Value}= Test Step1 ${variable}
            ..........
            .........
            Append To list ${list} ${Value}





            share|improve this answer












            *** Test Cases ***
            Test Case

            @{list}= Create List
            ${dbvalues}= SQL Query
            :FOR ${variable} IN {dbvalues}
            ${Value}= Test Step1 ${variable}
            ..........
            .........
            Append To list ${list} ${Value}






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 14 '18 at 11:01









            Batchu Bhargava

            374




            374








            • 4




              Welcome to StackOverflow! Your answer need more explanation about how the code works to be a good answer.
              – Foo
              Nov 14 '18 at 11:05






            • 1




              This example doesn't show a "loop in a loop", and doesn't contain any explanation of why there is no second loop.
              – Bryan Oakley
              Nov 14 '18 at 15:32














            • 4




              Welcome to StackOverflow! Your answer need more explanation about how the code works to be a good answer.
              – Foo
              Nov 14 '18 at 11:05






            • 1




              This example doesn't show a "loop in a loop", and doesn't contain any explanation of why there is no second loop.
              – Bryan Oakley
              Nov 14 '18 at 15:32








            4




            4




            Welcome to StackOverflow! Your answer need more explanation about how the code works to be a good answer.
            – Foo
            Nov 14 '18 at 11:05




            Welcome to StackOverflow! Your answer need more explanation about how the code works to be a good answer.
            – Foo
            Nov 14 '18 at 11:05




            1




            1




            This example doesn't show a "loop in a loop", and doesn't contain any explanation of why there is no second loop.
            – Bryan Oakley
            Nov 14 '18 at 15:32




            This example doesn't show a "loop in a loop", and doesn't contain any explanation of why there is no second loop.
            – Bryan Oakley
            Nov 14 '18 at 15:32



            Popular posts from this blog

            Guess what letter conforming each word

            Port of Spain

            Run scheduled task as local user group (not BUILTIN)