We all know ,this Method is often used to initialize a New Page either as Temporary Page or Embedded Page.There is much more than that in Page-New Method .
Page-New had three parameters
1 | Data transform | Only Data transforms created in the step Page context (ie class referred in Pages & Classes) can be used here. |
2 | Pagelist | Tricky One -You can’t refer a Page list property here; you can only refer a Value list property. It simply appends the step page name to the valuelist |
3 | New Class | if Left blank, the Page is created with context mentioned in the Pages and Classes. if Specified Overrides the Class specified in the Page and Classes and run the DT from the specified Class. |
I have created a new Activity “TestActivity” in @baseclass and used the Page New Method.
1) Let’s use the Data transform Parameter first and Check the tracer.
NOTE : pydefault DT is called from Assign-Worklist class which is specified in the Pages and Classes
2) Now lets proceed with the Next Pagelist Parameter with one of the out of the box Valuelist property ie( pyTextValue) and Check the tracer.
3) Now the last parameter ,New Class Parameter and check the tracer
Now we have mastered the Simplest method - Page-new method in the Activity.
Trust me, Being 5 years experienced, only while writing this post , I learnt about the Pagelist Parameter in Page-New method . Hope you understood.
Keep Reading!! More methods are Yet to come.
1 comments:
Can you explain #3 please. What value did you pass in 3rd parameter and why?
ReplyPost a Comment