Contributions
Re: How to record dynamic object name- Keyword Test
I am using Keyword Test, since I dont know any script language. That's why there is no code. I need to find a way how to uniquely identify the object containing the option that is dragged. These options have dynamic properties, and therefore I cannot capture the same object at every run of our automated test. I followed the below steps: 1. Dragging option 2: 2. After running few times, received an error message which says 'the object does not exist' 3. Go to the Name Mapping and click on Edit of the recorded object. The screenshot below shows that I need to update my object, even though it was working properly before: 4. Once I update the properties by clicking on 'update', the recorded object highlights the option 3 instead of option 2. I’ve tried one possible solution which is updating the dynamic parts of the properties by using wildcards: a)updating 'contentText, innerText and outerText' by adding *or ? b) updating outerHTML " <span data-am-translate="Question14.Draggable.2" data-am-translate-group="Question 14" data-wysiwyg="false">2</span> " by changing the dynamic parts with ? ==><span data-am-translate="Question14.Draggable.?" data-am-translate-group="Question 14" data-wysiwyg="false">?</span> However, using wildcards didnt help.2.3KViews1like1CommentRe: How to record dynamic object name- Keyword Test
Hi Marsha and hkim5, Thank you for your reply. I have tried this method before and unfortunately didnt help me to solve the issue. Intelligent Fix is suggesting to put asteriks. However, after I update my object (let say 1.option) with *, for instance contentText which Intelligent Fix is suggesting me, 2., 3. or 4. option is being selected/dragged instead of 1. option. Updating the object is not helping me,since this is a repetitive problem. So, everytime I need to update the object (contentText). In addition, I found out today that If I record only Part1 and run it few times, I encounter the same problem. (The object doesnt exist). Is there any different approach to solve this problem?2.3KViews0likes4CommentsHow to record dynamic object name- Keyword Test
Hi, I'm testing a booklet for an achievement test which has two parts and these parts contain 'Drag and Drop' question type. When I record a test of 'Drag and Drop' for Part1, everything is running perfectly. However, the same objects cannot be applied to 'Drag and Drop' of Part2. As soon as I record a new test for Part2, I get new objects and the previous ones do not work for Part1 anymore. For example for the first dragged item: Part1:Aliases.browser.pageAssessmentMasterEngineLms.frameContentFrame.textnode2 Part2:Aliases.browser.pageAssessmentMasterEngineLms.frameContentFrame.textnode32 The questions are like multiple choice. Except the content, the logic is the same. I am not an IT person and an advanced user in TestComplete. Therefore, I would be glad if someone could help me with non-technical terms :) Thank you in advance YagmurSolved2.4KViews0likes7Comments