Micro Focus QTP (UFT) Forums
Error message 'Invalid Arguments ' - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Error message 'Invalid Arguments ' (/Thread-Error-message-Invalid-Arguments)



Error message 'Invalid Arguments ' - sandeephc - 06-25-2012

Hi everyone am new this forum and also for automation am working on a Windows application.
QTP 9.5, Add-ins: WPF, .NET, ActiveX, Visual Basic. Windows based application C# .net. XP platform with SP3.
If I record and play back the login operation,the script is working fine but if type the same script and on running the script a error message is coming saying “Invalid arguments”.
Can anyone help out why this error message is coming?



RE: Error message 'Invalid Arguments ' - ssvali - 06-25-2012

Can you please post your script?


RE: Error message 'Invalid Arguments ' - sandeephc - 06-26-2012

Thanks

The error is coming on invoking application itself the line of code is

Code:
SystemUtil.Run "C:\RelyonSoft\TPSIndia\SaralOffice.exe","C:\RelyonSoft\TPSIndia\" ,"open"
SwfWindow("Information").Close


A splash screen comes and goes on launching application. But now as the splash screen comes the message box is coming with message "Invalid arguments"

please find attachment.


RE: Error message 'Invalid Arguments ' - Ankesh - 06-26-2012

Try adding a sync statement till the page loads. Once the page is loaded, you can then use close statement.
You can also add a check statement(IF ...Else) to see if the information window really exists?