cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter Default File location

SOLVED
Occasional Contributor

Parameter Default File location

i created a extension which set a data in text box and combo box, the data is on an excel file and it need to browse thru the parameter as file type. For some reason it need to open File dialog to point on certain folder preferably can be setup in a project, i dont want to set it up thru OS as it might affect other things outside of test complete. Is this possible? 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Operation Parameter Default File location

As far as I know, there's no way of declaring the default file path for that option in Keyword testing.  It's just generally picking the current file path, as far as I know.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
3 REPLIES 3
Community Hero

Re: Parameter Default File location

I'm not sure I understand what you're having this extension do.  It sounds like you're having the extension take data from an excel file and use it for populating data on screen.  And it sounds like you want to have the extension get the excel file path and file name, not from a dialog prompt, but internally in code.  Is that correct?

Do you ahve code you can share so we can see what you're trying to do?


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: Operation Parameter Default File location

I apologize for not making it clear. It's not the extension itself but rather the default path file path when using File type parameter. here's a screenshot:

 

tc.png

As you can see it open the file dialog in Desktop, in our project we need it to open in a certain path preferably something that can setup on project. 

 

Community Hero

Re: Operation Parameter Default File location

As far as I know, there's no way of declaring the default file path for that option in Keyword testing.  It's just generally picking the current file path, as far as I know.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
New Here?
Join us and watch the welcome video:
API Testing Mistake #2
APITestingMistake#2
Top Kudoed Authors