Forum Discussion

Novari-QA's avatar
Novari-QA
Frequent Contributor
8 years ago

Keyword tests are unable to identify functions

Keyword tests are unable to to see function.names.  See the code below. The script is called LoginPage.js var page = { form: { username: Aliases.browser.pageLogin.form.textboxUsername, ...
  • tristaanogre's avatar
    tristaanogre
    8 years ago

    Exactly... also, prevents the "copy paste" code problem from your original OP...  it's really generally bad practice to have the same code showing up almost EXACTLY the same way in multiple places... better to have the code modularized in one spot that is "smart" enough code to do what it needs to no matter where it is called.  Again, keep in mind, you're creating building blocks for your testers...  if you give them too many blocks that look almost exactly the same, you'll end up with more mistakes as the testers can get easily confused...