SilkTest Question:

Does anybody know the escape sequence for space in Silk Test?

Tweet Share WhatsApp

Answer:

Does anybody know the escape sequence for 'space' in Silk Test?
For eg :
On the cmd line I have to execute an exe, the location of which is : C:Program Filesxyzabc.exe
Now I need to escape the " " in 'Program Files'.


Answer1:
One thing is, you can use as C:Progr~1xyzabc.exe
Second one is give like myWindow.TypeKeys(" ")
Or just enclose the whole cmd in "". This will handle the space, I think this is your issue?
like:
string sCmdLine = "C:Program Filesxyzabc.exe"
Sys_Execute(sCmdLine)

Answer2:
You can use the command line with quotes when you have a long file name. so, if you need to execute "C:Program FilesMyProgProg.exe"
you can pass the quoted string :
""C:Program FilesMyProgProg.exe""

and it should execute Prog.exe correctly.

Answer3:
Might need to mix your quotes to make that work, like:
"'C:Program FilesMyProgProg.exe'"

Download SilkTest PDF Read All 146 SilkTest Questions
Previous QuestionNext Question
On the test GUI there is Cancel button and the hot key for that is Alt-c?How to write the single silk statement in two lines?