Forum Discussion

alak1985's avatar
alak1985
Occasional Visitor
5 years ago

How to extract data

Hello

I am testing one WPF desktop application. I need to do following things 

1. I want to save the data which one is generated during the testing. Manually I can do by click save button and specify the path in the computer. I want to automate this step

2.  I want to check the enable/disbale status of the button

3.  Few section of the software is populated with data after couple of minutes of use. I need to take screenshot or extract that data. 

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    So... what do you need help with?

     

    Item 1... Start with a recording to get the general workflow of the process.  Go back after recording and massage/harden your NameMapping and functional timings to make for a re-runnable project.

    Item 2... Read the documentation of on Property Checkpoints.  This is the best way to do that kind of validation check.  If you want to check the enable/disable before you proceeed on the workflow, a simple "if/then" logical flow on the property value will do that.

    Item 3... This one is a bit more complex.  It depends upon how the data is presented in order to determine how to extract it.  I would steer away from a screenshot if possible...image comparisons are notoriously sensitive for slight differences.  So, again, you could use the properties of the various objects for extracting the data.  But, again, would depend upon how and where the data is presented.

     

    For more specific, directed help with your specific application, we'll need screenshots of how the various parts show up in the Object Browser including all advanced property views.