Welcome to openkapow Sign in | Join
in Search
.

How to compare current output object with previous output object?

Last post 06-25-2008, 11:37 AM by Simon. 5 replies.
Sort Posts: Previous Next
  •  06-23-2008, 10:26 PM 20112

    How to compare current output object with previous output object?

    Hi all

    I want to compare current output object with previous output object... My robot steps are Load Page - Enter Value 1 - Click Pesquisa Google - For Each Tag - Extract - Return response... Here the extracted value is time... I want to compare current output with previous output if matches found means I simply want to eliminate the second one... How can i do this?

    Thanks


    K.Palanikumar
    Filed under:
  •  06-24-2008, 5:24 AM 20116 in reply to 20112

    Re: How to compare current output object with previous output object?

    Hi Palanikumar

    Use "Test Attributes"

    -Simon

  •  06-24-2008, 6:02 AM 20121 in reply to 20116

    Re: How to compare current output object with previous output object?

    Yes I'm using test attribute to check the condition and I have created global variables too but it gives some error... I know I did some mistakes in this bot... This is my bot... I dont know where I did mistake http://openkapow.com/files/folders/searching/entry20120.aspx Can u help me...?

    Thanks


    K.Palanikumar
  •  06-24-2008, 7:10 AM 20129 in reply to 20121

    Re: How to compare current output object with previous output object?

    You compare 6:00 with 6:00. These are the same values and the  result of testing with <> is false. so the conditons are not satified and your robot will stop.

     

  •  06-24-2008, 10:48 PM 20161 in reply to 20129

    Re: How to compare current output object with previous output object?

    Yes you are correct mrx... I'm extracting current output object and comparing  with current output object... That's why am having problem.. I don't know how to get previous output...  My test attribute is correct I'm comparing current output with previous one... If both are not equal means I want to print that values and if both values are equal means I simply want to skip that iteration... Any ideas to store previous output object and compare it with current output object...?

    Thanks


    K.Palanikumar
  •  06-25-2008, 11:37 AM 20167 in reply to 20161

    Re: How to compare current output object with previous output object?

    Hi

    What you need to do is make Test Attributes generate an error if it it turns out false AND configure error handling to skip the current branch on error.

    Do as follows:

    1. select the Test Attributes step, select the tab named Error Generation, and check the box.

    2. select the tab Error Handling and configure Own Errors to Ignore and Skip Branch.

    Now if the two attributes are the same the iteration of the loop will be skipped.

     

    "Any ideas to store previous output object and compare it with current output object...?"

    I think global variables is the right way to do this. you are doing the right thing in your robot but I think you will have to rearrange your steps a bit. ex. Test Attribute is failing on first iteration.

     

    -Simon

View as RSS news feed in XML
.
Copyright 2006, 2007 KapowTech.com All Rights Reserved Company | Contact | Terms | Privacy