question

AggrDVT avatar image
AggrDVT asked AggrDVT answered

Can I use DOS variables with iTetstcli

I am calling iTestcli from a bat file and would like to use DOS variables as below. I can't get it to work so I wonder if this is allowed. echo ****************************** echo Set up some variables echo ****************************** set QCPlatformName="BCM" set RegTestName="100148V_DMT" set TestDir="Table_tones" echo ****************************** echo Starting itestcli and login to QC echo ****************************** itestcli -qcu myname -qcp anything-qc -w "C:/iTest_workspace" ^ -qct "Root/DVT/%QCPlatformName/%TestDir/[1]Band_Table_tones" ^ -p slot_id=BCM_S1 ^ -es R:/%RegTestName/iTest/%TestDir ^ "project://DVT_test/%TestDir/Band_table_tones.fftc Note: In posting this back slashes would not appear so everything was changed to forward.
iTestitestcli
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

udaya avatar image
udaya answered
Yes, it should work. The script you have copied from bat file, seems you are missing % after the variable to make it replaced in runtime. e.g. set name=a.fftc itestcli -w f:/i43x project://my_project/test_cases/%name%
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

AggrDVT avatar image
AggrDVT answered
Thanks Udaya .. the following format works much better.. set RegTestName="OSP_Despair_1148V_DMT" set TestDir="Band_Table_tones" -qct "Root\xDSL_Drivers_DVT\%RegTestName%\%TestDir%\[1]Band_Table_tones" ^ Have a nice weekend
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.