ep_savage
12 years agoNew Contributor
CustomScpExplorerForm or ScpCommanderForm in WinSCP
Hello,
I'm trying to write a simple TestComplete script that deals will open up WinSCP and just set the local and remote paths (in preparation of a much larger project).
So, as in practice, I recorded the actions first, then started to clean up the script for reuse purposes.
Unfortunately, I've come across something that I'm not sure how to deal with. Apparently the form in WinSCP can be different. For example, I have the following line in my script:
form = winSCP["VCLObject"]("ScpCommanderForm");
Mostly this worked. But there have been a few times when TestComplete cannot find the ScpCommanderForm, which is because it doesn't exist. It is coming across as CustomScpExplorerForm instead.
To fix this, I tried using the following:
form = winSCP["WaitVCLObject"]("*Form",10000);
This didn't work either. I'm not sure how to go about trying to fix this.
After running WinSCP from TestComplete multiple times, I found out that about a quarter of the time, the form is CustomScpExplorerForm, and the rest it would be ScpCommanderForm.
Any suggestions would be appreciated.
Thank,
Paul
I'm trying to write a simple TestComplete script that deals will open up WinSCP and just set the local and remote paths (in preparation of a much larger project).
So, as in practice, I recorded the actions first, then started to clean up the script for reuse purposes.
Unfortunately, I've come across something that I'm not sure how to deal with. Apparently the form in WinSCP can be different. For example, I have the following line in my script:
form = winSCP["VCLObject"]("ScpCommanderForm");
Mostly this worked. But there have been a few times when TestComplete cannot find the ScpCommanderForm, which is because it doesn't exist. It is coming across as CustomScpExplorerForm instead.
To fix this, I tried using the following:
form = winSCP["WaitVCLObject"]("*Form",10000);
This didn't work either. I'm not sure how to go about trying to fix this.
After running WinSCP from TestComplete multiple times, I found out that about a quarter of the time, the form is CustomScpExplorerForm, and the rest it would be ScpCommanderForm.
Any suggestions would be appreciated.
Thank,
Paul