php - Automation Testing with Ranorex -


i testing php web application using ranorex automation tool. whenever record test case, recording when play test case stops (sometimes hangs) @ middle , fails test case.

what reason creating issue?

the way automate write code without using recorder. there reasons of it:

  1. recording unnecessary steps
  2. saving elements repository wrong attribute. usual there automation id , regex of text or caption of element. dynamically changeable elements doesn't fit.
  3. different types of elements requires different types of methods wait , validate them.

in way, i recommend you watch screencast of ranorex team. there 5 videos should know ui mapping.

according exceptions , errors in comments:

  1. "...atagprintreport3' not match specified value (actual='false', expected='true')" means ranorex recorded element atagprintreport3 value of bool attribute. of cource, value of element change, right way identify element attribute never change (uniqueid, name, class , other).

  2. failed find item 'updtaed_cpt_imsrepository.openinginventorystockvaluejpg.buttonok'. no element found path '/form[@title~'^opening\ inventory\ stock\ v']/button[@accessiblename='ok']' within 1m. error can result of fast dynamically changeable element, wrong path of element, presented in dom not visible. best way know what's wrong use breakpoints , step-to-step debuging.

in opinion path buttonok better if looks like: '/form[@title~'opening\ inventory\ stock']/button[@name='ok']'

  1. no element found path '/form[@title='reading untagged document']/?/?/button[@text='&cancel']' within 1m. same p.2
    in example, path better:

'/form[@title='reading untagged document']//button[@name='&cancel']'


Comments