#7343: SageNB -- Add a Selenium test suite.
----------------------------+-----------------------------------------------
   Reporter:  timdumol      |       Owner:  boothby                      
       Type:  enhancement   |      Status:  positive_review              
   Priority:  major         |   Milestone:  sage-4.2.1                   
  Component:  notebook      |    Keywords:                               
Work_issues:                |      Author:  Mike Hansen, Tim Joseph Dumol
   Reviewer:  Mitesh Patel  |      Merged:                               
----------------------------+-----------------------------------------------

Comment(by mpatel):

 Good news, I think:  We can use !FunkLoad to create a new worksheet,
 enter/evaluate a cell, and check for updates every 0.25 seconds.  We just
 need to send a [conditional] sequence of HTTP GET and POST requests.
 Unless there are objections, I'll try to carry this further, along the
 lines of the Selenium test suite.   To the extent that FL is pure Python,
 its "functional" and load tests should run on multiple platforms.

 Note: I did need to make one change to FL's redirect handling code:
 {{{
 #!diff
 --- trunk/src/funkload/FunkLoadTestCase.py      2009-11-11
 02:31:27.000000000 -0800
 +++ funkload/src/funkload/FunkLoadTestCase.py   2009-10-14
 14:51:19.000000000 -0700
 @@ -277,6 +277,9 @@ class FunkLoadTestCase(unittest.TestCase
              thread_sleep()              # give a chance to other threads
              while response.code in (301, 302, 303, 307) and
 max_redirect_count:
                  # Figure the location - which may be relative
 +                cookie = response.headers.get('Set-Cookie')
 +                if cookie:
 +                    self.setHeader('cookie', cookie)
                  newurl = response.headers['Location']
                  url = urljoin(url_in, newurl)
                  # save the current url as the base for future redirects
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7343#comment:15>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to