<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Code Fsharp on Chris McKelt - Remembering Thoughts</title><link>https://blog.smarttechventures.au/tags/code-fsharp/</link><description>Recent content in Code Fsharp on Chris McKelt - Remembering Thoughts</description><generator>Hugo -- 0.147.2</generator><language>en</language><lastBuildDate>Tue, 14 May 2013 00:00:00 +0800</lastBuildDate><atom:link href="https://blog.smarttechventures.au/tags/code-fsharp/index.xml" rel="self" type="application/rss+xml"/><item><title>F# Canopy UI tests -- http://lefthandedgoat.github.io/canopy/</title><link>https://blog.smarttechventures.au/articles/posts/f-canopy-ui-tests-httplefthandedgoat-github-iocanopy/</link><pubDate>Tue, 14 May 2013 00:00:00 +0800</pubDate><guid>https://blog.smarttechventures.au/articles/posts/f-canopy-ui-tests-httplefthandedgoat-github-iocanopy/</guid><description>&lt;p>`&lt;/p>
&lt;h1 id="fsharp-canopy-tests">FSharp Canopy Tests&lt;/h1>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> namespace RegressionTests
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> open System
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> open System.Configuration
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> open runner
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> open canopy
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> open configuration
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> open reporters
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> open QuoteHelper
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> module QuoteSiteTests =
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let runTest = (
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> start chrome
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let mainBrowser = browser
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> elementTimeout &amp;lt;- 15.0
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> compareTimeout &amp;lt;- 15.0
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let _testpage = ConfigurationManager.AppSettings.\[&amp;#34;AolSiteUrl&amp;#34;]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let _username = ConfigurationManager.AppSettings.\[&amp;#34;AolChallengerId&amp;#34;]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let _password = ConfigurationManager.AppSettings.\[&amp;#34;AolPassword&amp;#34;]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let _passwordChangeToThis = ConfigurationManager.AppSettings.\[&amp;#34;AolPasswordChangeToThis&amp;#34;]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let _includePasswordChangeTest = ConfigurationManager.AppSettings.\[&amp;#34;IncludePasswordChangeTest&amp;#34;]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let _quickSearchText = ConfigurationManager.AppSettings.\[&amp;#34;QuickSearchText&amp;#34;]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let _quickSearchFindInvestor = ConfigurationManager.AppSettings.\[&amp;#34;QuickSearchFindInvestor&amp;#34;]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let _path = ConfigurationManager.AppSettings.\[&amp;#34;OutputTestResults&amp;#34;]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> QuoteHelper.deleteFiles _path &amp;#34;&amp;#34; true
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> for file in System.IO.Directory.EnumerateFiles(_path) do
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let tempPath = System.IO.Path.Combine(_path, file)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> System.IO.File.Delete(tempPath)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> context (&amp;#34;Testing :: eQuote - &amp;#34; + _testpage + &amp;#34;/Quote&amp;#34;)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> before (fun _ -&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe &amp;#34;Starting test&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> url (_testpage + &amp;#34;/Quote&amp;#34;)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> )
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ntest &amp;#34;Login&amp;#34; (fun _ -&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe (&amp;#34;Login with &amp;#34; + _username)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> url _testpage
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;#userId&amp;#34; &amp;lt;&amp;lt; _username
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;#password&amp;#34; &amp;lt;&amp;lt; _password
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;.submit&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> // on (_testpage + &amp;#34;/Secure/Home/&amp;#34;)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> )
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ntest &amp;#34;GIP Quote - Fixed Term&amp;#34; (fun _ -&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe &amp;#34;Creating GIP quote – fixed 3 year&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34;$(&amp;#39;input:radio\[name=NewPolicyType]:first&amp;#39;).attr(&amp;#39;checked&amp;#39;, true);&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnContinue1&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let setQuote = QuoteHelper.createQuoteTerm &amp;#34;100000&amp;#34; &amp;#34;Monthly&amp;#34; &amp;#34;3&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js setQuote |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnRunQuote&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnSaveQuote&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 3
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let linkText = read &amp;#34;#yourQuoteId&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe linkText
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> screenshot _path linkText |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> )
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ntest &amp;#34;GIP quote – life&amp;#34; (fun _ -&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe &amp;#34;Creating GIP quote – life&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34;$(&amp;#39;input:radio\[name=NewPolicyType]::nth(1)&amp;#39;).attr(&amp;#39;checked&amp;#39;, true);&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnContinue1&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34; $(&amp;#39;input:radio\[name=ProductTerm]::nth(1)&amp;#39;).click();&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let setQuote = QuoteHelper.createQuoteLife &amp;#34;100000&amp;#34; &amp;#34;Monthly&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js setQuote |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34;$(&amp;#39;#InitialCommissionRate&amp;#39;).val(&amp;#39;0&amp;#39;);&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnRunQuote&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnSaveQuote&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 3
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let linkText = read &amp;#34;#yourQuoteId&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe linkText
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> screenshot _path linkText |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> )
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ntest &amp;#34;GA Quote - Fixed Term&amp;#34; (fun _ -&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe &amp;#34;Creating Fee for service annuity quote - FIXED&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34;$(&amp;#39;input:radio\[name=NewPolicyType]:first&amp;#39;).attr(&amp;#39;checked&amp;#39;, true);&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnContinue1&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let setQuote = QuoteHelper.createQuoteTerm &amp;#34;100000&amp;#34; &amp;#34;Monthly&amp;#34; &amp;#34;3&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js setQuote |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34;$(&amp;#39;#InitialCommissionRate&amp;#39;).val(&amp;#39;0.0055&amp;#39;);&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnRunQuote&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnSaveQuote&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 3
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let linkText = read &amp;#34;#yourQuoteId&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe linkText
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> screenshot _path linkText |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> )
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ntest &amp;#34;GA quote – life&amp;#34; (fun _ -&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe &amp;#34;Creating GA quote – life&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34;$(&amp;#39;input:radio\[name=NewPolicyType]::nth(1)&amp;#39;).attr(&amp;#39;checked&amp;#39;, true);&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnContinue1&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34; $(&amp;#39;input:radio\[name=ProductTerm]::nth(1)&amp;#39;).click();&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let setQuote = QuoteHelper.createQuoteLife &amp;#34;100000&amp;#34; &amp;#34;Yearly&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js setQuote |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34;$(&amp;#39;#InitialCommissionRate&amp;#39;).val(&amp;#39;0&amp;#39;);&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnRunQuote&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnSaveQuote&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 3
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let linkText = read &amp;#34;#yourQuoteId&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe linkText
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> screenshot _path linkText |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> )
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ntest &amp;#34;GreenId Test&amp;#34; (fun _ -&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe &amp;#34;GreenId Test&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34;$(&amp;#39;input:radio\[name=NewPolicyType]::nth(1)&amp;#39;).attr(&amp;#39;checked&amp;#39;, true);&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnContinue1&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34; $(&amp;#39;input:radio\[name=ProductTerm]::nth(1)&amp;#39;).click();&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let setQuote = QuoteHelper.createQuoteLife &amp;#34;100000&amp;#34; &amp;#34;Yearly&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js setQuote |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js &amp;#34;$(&amp;#39;#InitialCommissionRate&amp;#39;).val(&amp;#39;0&amp;#39;);&amp;#34; |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnRunQuote&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnSaveQuote&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 3
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let linkText = read &amp;#34;#yourQuoteId&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> describe linkText
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#btnApply&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> js QuoteHelper.greenId |&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> sleep 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> click &amp;#34;#InvestorDetails_IdentityVerification_CheckId&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> screenshot _path (&amp;#34;GreenId -&amp;#34; + linkText )|&amp;gt; ignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> )
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> run ()
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> quit mainBrowser
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> )
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>namespace RegressionTests
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> module QuoteHelper =
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let createQuoteTerm amount paymentFrequency term = (
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> @&amp;#34; $(&amp;#39;#InvestorDetails_Title&amp;#39;).val(&amp;#39;Mr&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_GivenNames&amp;#39;).val(&amp;#39;test&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_Surname&amp;#39;).val(&amp;#39;client&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_DateOfBirth_day&amp;#39;).val(1);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_DateOfBirth_month&amp;#39;).val(1);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_DateOfBirth_year&amp;#39;).val(1937);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestmentAmount&amp;#39;).val(&amp;#34; + amount + &amp;#34;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestmentAmount_editor&amp;#39;).val(&amp;#39;$100,000.00&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#PaymentFrequency&amp;#39;).val(&amp;#39;&amp;#34; + paymentFrequency + &amp;#34;&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#Term&amp;#39;).val(&amp;#39;&amp;#34; + term + &amp;#34;&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InitialCommissionRate&amp;#39;).val(&amp;#39;0&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#Indexation&amp;#39;).val(&amp;#39;ZeroPercent&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#OngoingCommissionRate&amp;#39;).val(&amp;#39;0.00550&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#ResidualCapitalValueRate&amp;#39;).val(&amp;#39;1.00000&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_Title&amp;#39;).val(&amp;#39;Mr&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_GivenNames&amp;#39;).val(&amp;#39;joint test&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_Surname&amp;#39;).val(&amp;#39;client&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_DateOfBirth_day&amp;#39;).val(31);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_DateOfBirth_month&amp;#39;).val(12);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_DateOfBirth_year&amp;#39;).val(1956);&amp;#34;)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let createQuoteLife amount paymentFrequency = (
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> @&amp;#34; $(&amp;#39;#InvestorDetails_Title&amp;#39;).val(&amp;#39;Mr&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_GivenNames&amp;#39;).val(&amp;#39;test&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_Surname&amp;#39;).val(&amp;#39;client&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_DateOfBirth_day&amp;#39;).val(1);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_DateOfBirth_month&amp;#39;).val(1);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_DateOfBirth_year&amp;#39;).val(1937);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestmentAmount&amp;#39;).val(&amp;#34; + amount + &amp;#34;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestmentAmount_editor&amp;#39;).val(&amp;#39;$100,000.00&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#PaymentFrequency&amp;#39;).val(&amp;#39;&amp;#34; + paymentFrequency + &amp;#34;&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InitialCommissionRate&amp;#39;).val(&amp;#39;0.0055&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#Indexation&amp;#39;).val(&amp;#39;ZeroPercent&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#OngoingCommissionRate&amp;#39;).val(&amp;#39;0.00550&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#ResidualCapitalValueRate&amp;#39;).val(&amp;#39;1.00000&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_Title&amp;#39;).val(&amp;#39;Mr&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_GivenNames&amp;#39;).val(&amp;#39;joint test&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_Surname&amp;#39;).val(&amp;#39;client&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_DateOfBirth_day&amp;#39;).val(31);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_DateOfBirth_month&amp;#39;).val(12);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#JointInvestorDetails_DateOfBirth_year&amp;#39;).val(1956);&amp;#34;)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let greenId = (@&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_ResidentialAddress_UnitNumber&amp;#39;).val(&amp;#39;5&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_ResidentialAddress_StreetNumber&amp;#39;).val(&amp;#39;48&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_ResidentialAddress_StreetName&amp;#39;).val(&amp;#39;Manchester&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_ResidentialAddress_Suburb&amp;#39;).val(&amp;#39;Gymea&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_ResidentialAddress_StreetType&amp;#39;).val(&amp;#39;RD&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_ResidentialAddress_State&amp;#39;).val(&amp;#39;NSW&amp;#39;);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> $(&amp;#39;#InvestorDetails_ResidentialAddress_Postcode&amp;#39;).val(2227);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let rec deleteFiles srcPath pattern includeSubDirs =
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> if not &amp;lt;| System.IO.Directory.Exists(srcPath) then
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let msg = System.String.Format(&amp;#34;Source directory does not exist or could not be found: {0}&amp;#34;, srcPath)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> raise (System.IO.DirectoryNotFoundException(msg))
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> for file in System.IO.Directory.EnumerateFiles(srcPath, pattern) do
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let tempPath = System.IO.Path.Combine(srcPath, file)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> System.IO.File.Delete(tempPath)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> if includeSubDirs then
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> let srcDir = new System.IO.DirectoryInfo(srcPath)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> for subdir in srcDir.GetDirectories() do
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> deleteFiles subdir.FullName pattern includeSubDirs
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>`
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item></channel></rss>