Blur
9 years agoContributor
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. Howeve...
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.
So far so good. Can I see where you've actually used the wildcard?
I just deleted the number and put the wildcard.
The first thing I would try is also taking the underscores out, leaving only post*delete
There might be something odd about the way those characters parse so that it's skipping the wildcard.
If that doesn't fix it, I would look farther up the branch to see if something before that delete is post-specific. Attach another screenshot with the expanded branch if you'd like me to look.
It's not really skipping the wildcard. The wildcard is making it so nothing is unique so each post is identified as the same post. If I only had one post then there would be no problems. TestComplete goes for the most recent post. At first I thought maybe something was wrong with that specific post but that wasn't the case. I tested this by deleting the last post and TestComplete would just run the tests on the post right before it.
Edit:
So basically I'm using TestComplete on a forum. There are multiple posts. Each post has a unique postID. I used wildcard so that it won't have to map every new post. The problem with this is that now the posts are not unique. If I do something with post 1~100, TestComplete will just do the test case no post 100.