Monday, May 2, 2016

PTF 8.54 calling a Process and wait for Success



Two different ways to call a process 
1. Static
2. Dynamic (By Creating Model Test case)





1.Static:
           Type: Process
           Action: Run
           Recognition: prcsname=AEMINITEST
           Parameters: prctype=Application Engine;wait=true;outtype=Web;outformat=TXT;expected=Success;ret=true






2.Dynamic :
 By creating model test case for process monitor and pass variable to that test case. This way we can re-use this test case for any kind of process.



 1.Create a new test case with PRCSMONITOR
 
           Type: Process
           Action: Run
           Recognition: prcsname=&pn
           Parameters: prctype=Application Engine;wait=true;outtype=Web;outformat=TXT;expected=Success;ret=true



    (note: &pn is the variable which we going to create in main test case.)
       
 2.Create step with Variable:
  Type: Variable
  Action:Exec
  Action: Set_value
  Recognition: &pn 
  Value: AEMINITEST



 3.Create a test case to call PRCSMONITOR Model test case.      





:-)