I automating a section of our website which uses an activex object to display graphs and charts. I was wondering if anyone knew the best way to deal with this object ie which references should I use ? I want to to be able to tell that the aobject has loaded with the correct information displayed. The object is below. Thanks for any help.
ActiveX("Name=graph ClassName='Java Plug-in Control Window'")
Your app does not use ActiveX, rather it uses a java applet. In order for developers to embed java into a browser they have to use the ActiveX plug in control that acts like a "frame" for the applet.
TP supports java applets, but when it comes to graphs and charts its tough in any technology because its not objects, rather pixel pictures.
1) If your regression scripts will produce the exact same image each time you need to do validation, you can use the Bitmap check.
2) If not, is there any other way to somewhat validate the result, with out the chart. In other words is there text outside the chart stating the parameters? If so, validate them and that will give you a 75% confidence in the app.
3) The TPHelperCommands.dll has a class called snapshot. This lets you capture screenshots and put them into word docs on playback. You can have TP take a shot of your app each time you need to do a verification, and write it to a file with a comment of what the snapshot should display. Now you just have a manual step at the end of your test to review the created doc.
Get the dll here: