Testing Fly Out Menu in QTP

前端 未结 5 1994
别跟我提以往
别跟我提以往 2020-12-05 22:28

I am looking for ideas to trigger the actions for fly-out menus using QTP.

I am testing a Web App using QTP. The application has \"cascaded\" or hierarchical fly-out

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 23:05

    For the reason of loosing multitasking while QTP is executing, I did not implement with Motti's suggesiton. So instaed I ended up going through the HTML code to see which mouse events are expected by the java script. It turns out i need to call the below sequences:

    Link("Options").FireEvent ("onmouseover")
    WebElement("Preferences").FireEvent ("onmouseover")
    WebElement("Preferences").FireEvent ("onClick")
    

    This trick works really nice, but the risk here is if they change any thing drastically (say instaed of litening to Click if they use onMouseDown) I need to tweak the test script.

提交回复
热议问题