Basim
July 23rd, 2003, 12:12 AM
Hello all
we are working on the developement of an automated testing tool. the
scenario is some what like this. our application is going to test
another application. so when the user is performing any interaction
with the application under test our application would record that
interaction, the control on which the operation has occured its
information would be stored in a File. we would store the Label, MSW
class, and MSW ID in that file. this file would assign a logical name
to the control and an appropriate function would be generated.
for example if i click a button named "HI" when clicked, its
properties such as label, (x,y),enabled/disbaled would be stored in
the file. And a function called button_Press(Logical name)
later when we want to play back the recorded test, what information
can we consider as unique from where i can get the handle and play
back the function that i have generated during recoeding.
after all this lengthy description now my question is that what
information about any particualr control is unique that i can store in
the file so that it can help me in playback as u all know that handle
is not unique it is decided on run time, similalry some controls dont
have thier label and also some controls dont have id. you may point to
the x,y coordinates but i dont want to use that, bec even if the
control is present during play back and its x,y have changed even then
i want to play it back bec most of the testing tools do that
i hope that you have understood this lengthy story
do help me
thanx in advance
regards
Basim
we are working on the developement of an automated testing tool. the
scenario is some what like this. our application is going to test
another application. so when the user is performing any interaction
with the application under test our application would record that
interaction, the control on which the operation has occured its
information would be stored in a File. we would store the Label, MSW
class, and MSW ID in that file. this file would assign a logical name
to the control and an appropriate function would be generated.
for example if i click a button named "HI" when clicked, its
properties such as label, (x,y),enabled/disbaled would be stored in
the file. And a function called button_Press(Logical name)
later when we want to play back the recorded test, what information
can we consider as unique from where i can get the handle and play
back the function that i have generated during recoeding.
after all this lengthy description now my question is that what
information about any particualr control is unique that i can store in
the file so that it can help me in playback as u all know that handle
is not unique it is decided on run time, similalry some controls dont
have thier label and also some controls dont have id. you may point to
the x,y coordinates but i dont want to use that, bec even if the
control is present during play back and its x,y have changed even then
i want to play it back bec most of the testing tools do that
i hope that you have understood this lengthy story
do help me
thanx in advance
regards
Basim