Forum Discussion

Blur's avatar
Blur
Contributor
9 years ago

Wildcard

I understand that I can use wildcards(*) when there is a dynamic property.  I am currently doing test cases on a forum.  Each post has a different postID.  I created a test case with 3 posts.  However, TestComplete only identifies the first post.   I record a a test deleting the third post.  When I run the test, TestComplete tries to delete the first post instead.  Any help would be appreciated, thanks.

14 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Let's see your mapping and the piece of code that's failing.

    • Blur's avatar
      Blur
      Contributor

      I'm still just using keyword testing.  Here's a screenshot of what's happening.  I tried replacing the numbers with Wildcards(*) and then I run into the issue of TestComplete selecting the last post.

       

      Mapping.jpg

      • Marsha_R's avatar
        Marsha_R
        Champion Level 3

        So far so good.  Can I see where you've actually used the wildcard?