Forum Discussion

redring's avatar
redring
Regular Visitor
8 years ago

Making code generic by storing images to an object

Here are two scenarios and I would like to know how to automate it. I am currently looking to keyword testing options but open for writing a script also.

 

Scenario 1:

 

I have web apps with different configuration- app A and app B. Both apps has an image to be clicked but the image is in different color in each app and wanted to test that the right image is loaded. I'm not sure how to store and retrieve the images based on which app is loaded.

 

Scenario 2:

 

Both apps has forms with different number of rows. How to automate entering values based on the row in these form and also check row's name is displayed correctly 

 

Thank you!

2 Replies

  • NisHera's avatar
    NisHera
    Valued Contributor

    1) you can have region check point to test an image ...for more pl read this

     

    2) second questions depend on what kind of grid your application used in your form.....

    if you go to this will find out what kind of grids are supported and how you able to handle those.

     

    if you have more specific questions forum could be able help with specific answers 

  • NisHera's avatar
    NisHera
    Valued Contributor

    1) You can use region checkpoint to test an image

    for more info please refer this

     

    2) This depends on what kind of grid you use in your form

    you can go through this to learn how to handle rows in grid control