Advertisement
talkingtree

MXUnit method sequence - Application.cfc

Mar 30th, 2011
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. <cfcomponent
  2. displayname="MXUnit_Dataprovider_Repro"
  3. output="false"
  4. hint="Automated UI testing for webtops using CFSelenium">
  5.  
  6. <cfset THIS.Name = "MXUnit_Dataprovider_Repro" />
  7. <cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 1, 0 ) />
  8. <cfset THIS.SessionManagement = false />
  9. <cfset THIS.ClientManagement = false />
  10. <cfset THIS.SetClientCookies = false />
  11.  
  12. <cfsetting
  13. requesttimeout="180"
  14. showdebugoutput="false"
  15. enablecfoutputonly="false"
  16. />
  17.  
  18. <cffunction
  19. name="OnApplicationStart"
  20. access="public"
  21. returntype="boolean"
  22. output="false"
  23. hint="Fires when the application is first created.">
  24.  
  25. <cfdump var="-> OnApplicationStart #now()#" output="console" format="text">
  26.  
  27. <cfreturn true />
  28. </cffunction>
  29.  
  30. <cffunction
  31. name="OnRequestStart"
  32. access="public"
  33. returntype="boolean"
  34. output="false"
  35. hint="Fires at first part of page processing.">
  36.  
  37. <cfargument
  38. name="TargetPage"
  39. type="string"
  40. required="true"
  41. />
  42.  
  43. <cfdump var="-> OnRequestStart #now()#" output="console" format="text">
  44.  
  45. <cfreturn true />
  46. </cffunction>
  47.  
  48. <cffunction
  49. name="OnRequestEnd"
  50. access="public"
  51. returntype="void"
  52. output="true"
  53. hint="Fires after the page processing is complete.">
  54.  
  55. <cfdump var="-> OnRequestEnd #now()#" output="console" format="text">
  56.  
  57. <cfreturn />
  58. </cffunction>
  59.  
  60. <cffunction
  61. name="OnApplicationEnd"
  62. access="public"
  63. returntype="void"
  64. output="false"
  65. hint="Fires when the application is terminated.">
  66.  
  67. <cfargument
  68. name="ApplicationScope"
  69. type="struct"
  70. required="false"
  71. default="#StructNew()#"
  72. />
  73.  
  74. <cfdump var="-> OnApplicationEnd #now()#" output="console" format="text">
  75.  
  76. <cfreturn />
  77. </cffunction>
  78.  
  79. </cfcomponent>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement