Set squashtest.ta.ssh.username in squashtm?

gaelor
Messages : 19
Inscription : ven. janv. 09, 2015 8:59 am

Set squashtest.ta.ssh.username in squashtm?

Message par gaelor »

Hello,

Is it possible to use personal field in TM to set squashtest.ta.ssh.username ?

And use it with context_script_params like (didn't work):

SETUP :
LOAD shell/session1.txt AS session1
CONVERT session1 TO file(param) USING context_script_params AS [color=#ff0000]processedSession1[/color]
LOAD shell/assert1.txt AS assert1
CONVERT assert1 TO file(param) USING context_script_params AS processedAssert1
LOAD shell/shell1.txt AS shell1
CONVERT shell1 TO file(param) USING context_script_params AS processedTest1
CONVERT processedTest1 TO query.shell USING $(timeout:150000) AS commandLine1

TEST :
//EXECUTE execute WITH commandLine1 ON ssh_selinux AS result1
EXECUTE execute WITH commandLine1 ON [color=#ff0000]processedSession1 [/color]AS result1
ASSERT result1 DOES contain WITH processedAssert1 USING $(out)

THX in Advanced
Avatar de l’utilisateur
bfranchet
Messages : 142
Inscription : jeu. nov. 22, 2012 1:36 pm

Set squashtest.ta.ssh.username in squashtm?

Message par bfranchet »

Hello,

What you do can't work. "ssh_selinux" is TA target component of type ssh, whereas "processedSession1" is a TA resource component of type file. You have a component missmatch.

There is currently no solution to modify a target according the script context in Squash TA.
Although we already had some discussion around this subject in the TA team, nothing is planned currently.

Regards
Répondre

Revenir à « SSH Plugin »