The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> AutomatedQA / SmartBear TestComplete

Pages: 1
DuchessofSquee
Newbie


Reged: 10/03/12
Posts: 2
How to use wildcards in a filename?
      #717439 - 10/03/12 02:38 PM

Hi all, I've had a quick search and can't find a thread already answering this exactly so forgive me if I shouldn't be making a new thread.

I've just started using TestComplete and I'm a bit stuck with something.
I need to automate an action where the application imports a file. So far so good.
However the filename will change with different versions (version number is in the filename.)
How can I make sure the test can pick up the file each time if part of the filename changes?
I've tried playing with the * and ? wildcards but I mustn't be using them right.

This is a keyword test and the step looks like this:
Item Operations Value
dlgOpen OpenFile C:\Folder\filename1.23.4567.8910.Blah.zip

Its the .8910 part of the filename which will change (in the short term at least).

Can someone please help?

Cheers!


Post Extras: Print Post   Remind Me!   Notify Moderator  
DuchessofSquee
Newbie


Reged: 10/03/12
Posts: 2
Re: How to use wildcards in a filename? [Re: DuchessofSquee]
      #717857 - 10/10/12 01:09 PM

Would really appreciate some help with this question please!

Post Extras: Print Post   Remind Me!   Notify Moderator  
cfree
Newbie


Reged: 06/12/12
Posts: 14
Re: How to use wildcards in a filename? [Re: DuchessofSquee]
      #717883 - 10/11/12 05:11 AM

As far as I can tell from the documentation, the OpenFile() method does not accept wildcards in the FileName parameter. It may be necessary to use some scripting to build the string to pass in before you call OpenFile(). Is there any way for you to know what the filename is going to be during execution?

Post Extras: Print Post   Remind Me!   Notify Moderator  
Tanya_SmartBear
Member


Reged: 03/21/11
Posts: 45
Re: How to use wildcards in a filename? [Re: cfree]
      #718720 - 10/25/12 03:20 AM

Hi Rachel,

The problem is being discussed in the TestComplete Forums.

--------------------
Tanya,
SmartBear Technical Community Manager, Testing Tools

Interested in more, visit our SmartBear community


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 16 anonymous users are browsing this forum.

Moderator:  NickAQA, Robert Martin, martinh, brentpaine 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 2682

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5