简体   繁体   中英

How can we implement page Object Model in Test complete

I am new to test complete and I looking to build BDD framework. I want to is it possible to create any page object model in test complete? How we have in selenium.

Any leads would be appreciated

Thanks a lot

So, TestComplete creates it's own model of the application which works in a similar way to Page Object Model - you can find this in the Name Mapping section of your project. When you record routines in either a Keyword Test or script, TestComplete will automatically add page objects to the name mapping, alternatively you can add objects manually.

浏览器页面对象的名称映射

You can then use Step Definitions to link Scenario steps to either Keyword Tests or script functions, eg

Given("some precondition", function (){
  KeywordTests.Test1.Run();
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM