[jboss-svn-commits] JBL Code SVN: r12221 - in labs/jbossforums/branches/tests: main and 1 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue May 29 18:26:34 EDT 2007


Author: adamw
Date: 2007-05-29 18:26:34 -0400 (Tue, 29 May 2007)
New Revision: 12221

Added:
   labs/jbossforums/branches/tests/main/src/command_factories.py
   labs/jbossforums/branches/tests/main/src/globals_main.py
   labs/jbossforums/branches/tests/main/src/log-pre-parser.py
   labs/jbossforums/branches/tests/main/src/out.log
   labs/jbossforums/branches/tests/main/src/test.log
Removed:
   labs/jbossforums/branches/tests/log-pre-parser/
Modified:
   labs/jbossforums/branches/tests/main/.project
   labs/jbossforums/branches/tests/main/.pydevproject
   labs/jbossforums/branches/tests/main/src/create_new_post.py
   labs/jbossforums/branches/tests/main/src/create_users.py
   labs/jbossforums/branches/tests/main/src/globals.py
   labs/jbossforums/branches/tests/main/src/main.py
   labs/jbossforums/branches/tests/main/src/view_main.py
   labs/jbossforums/branches/tests/main/src/view_post.py
Log:
The test script itself

Modified: labs/jbossforums/branches/tests/main/.project
===================================================================
--- labs/jbossforums/branches/tests/main/.project	2007-05-29 21:06:11 UTC (rev 12220)
+++ labs/jbossforums/branches/tests/main/.project	2007-05-29 22:26:34 UTC (rev 12221)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <projectDescription>
-	<name>forums-main-test</name>
+	<name>forums-test</name>
 	<comment></comment>
 	<projects>
 	</projects>

Modified: labs/jbossforums/branches/tests/main/.pydevproject
===================================================================
--- labs/jbossforums/branches/tests/main/.pydevproject	2007-05-29 21:06:11 UTC (rev 12220)
+++ labs/jbossforums/branches/tests/main/.pydevproject	2007-05-29 22:26:34 UTC (rev 12221)
@@ -4,6 +4,6 @@
 <pydev_project>
 <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.5</pydev_property>
 <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
-<path>/forums-main-test/src</path>
+<path>/forums-test/src</path>
 </pydev_pathproperty>
 </pydev_project>

Added: labs/jbossforums/branches/tests/main/src/command_factories.py
===================================================================
--- labs/jbossforums/branches/tests/main/src/command_factories.py	                        (rev 0)
+++ labs/jbossforums/branches/tests/main/src/command_factories.py	2007-05-29 22:26:34 UTC (rev 12221)
@@ -0,0 +1,27 @@
+import re
+from globals import *
+
+file_cf_filename = dat_files_dir + "out.log"
+file_cf_limit = 10
+file_cf_line_regexp_string = """(\d)+ (\w+)\\n"""
+file_cf_line_regexp = re.compile(file_cf_line_regexp_string)
+
+class FileCommandFactory:
+    def __init__(self):
+        self.file = open(file_cf_filename)
+        self.read_lines = 0
+
+    def next(self):
+        if file_cf_limit != -1 and self.read_lines >= file_cf_limit:
+            return (-1, "end")
+        
+        line = self.file.readline()
+        
+        if line == "":
+            return (-1, "end")
+        
+        self.read_lines += 1
+        
+        match_object = file_cf_line_regexp.match(line)
+        return (int(match_object.group(1)), str(match_object.group(2)))
+        
\ No newline at end of file

Modified: labs/jbossforums/branches/tests/main/src/create_new_post.py
===================================================================
--- labs/jbossforums/branches/tests/main/src/create_new_post.py	2007-05-29 21:06:11 UTC (rev 12220)
+++ labs/jbossforums/branches/tests/main/src/create_new_post.py	2007-05-29 22:26:34 UTC (rev 12221)
@@ -9,9 +9,10 @@
 import re
 
 from globals import *
+from globals_main import *
 
 new_topic_id_regexp_string = """notified_post_id=(\d+)"""
-new_topic_id_regexp = re.compile(new_post_id_regexp_string)
+new_topic_id_regexp = re.compile(new_topic_id_regexp_string)
 
 create_headers0= \
   ( NVPair('Accept', 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'), )
@@ -321,7 +322,7 @@
 
     return result
 
-  def all(self, forum_id):
+  def all(self, forum_id, username, password):
     # Getting the main forums page
     self.page1()
     
@@ -329,7 +330,7 @@
     self.page2()
 
     # Logging in
-    self.page3("admin", "admin")
+    self.page3(username, password)
 
     # Returning to the main page view
     self.page4()
@@ -348,9 +349,9 @@
     
     return topic_id
 
-  def __call__(self, forum_id):
+  def __call__(self, forum_id, username, password):
     """This method is called for every run performed by the worker thread."""
-    return self.all(forum_id)
+    return self.all(forum_id, username, password)
 
 def instrumentMethod(test, method_name, c=CreateNewPost):
   """Instrument a method with the given Test."""

Modified: labs/jbossforums/branches/tests/main/src/create_users.py
===================================================================
--- labs/jbossforums/branches/tests/main/src/create_users.py	2007-05-29 21:06:11 UTC (rev 12220)
+++ labs/jbossforums/branches/tests/main/src/create_users.py	2007-05-29 22:26:34 UTC (rev 12221)
@@ -5,11 +5,10 @@
 import httplib
 import urllib
 
-base_url = "localhost:8080"
-username_base = "user_"
-password_base = "pass_"
+from globals import *
      
 def create_user(username, password): 
+    """Creates a portal user with the given username and password."""
     conn = httplib.HTTPConnection(base_url)
     try:
         params = urllib.urlencode({"op" : "showRegister", 
@@ -64,7 +63,7 @@
         if create_user(new_username, new_password):
             print "Created user (%s, %s)." % (new_username, new_password)
         else:
-            print "Creating user %s unsuccessfull." % (new_username)
+            print "Creating user %s unsuccessfull." % new_username
     
     print "Done."
     

Modified: labs/jbossforums/branches/tests/main/src/globals.py
===================================================================
--- labs/jbossforums/branches/tests/main/src/globals.py	2007-05-29 21:06:11 UTC (rev 12220)
+++ labs/jbossforums/branches/tests/main/src/globals.py	2007-05-29 22:26:34 UTC (rev 12221)
@@ -1,20 +1,12 @@
-from HTTPClient import NVPair
-from net.grinder.plugin.http import HTTPPluginControl
+# Host of the tested forums instance (without the schema)
+base_url = 'localhost:8080'
 
-connectionDefaults = HTTPPluginControl.getConnectionDefaults()
-httpUtilities = HTTPPluginControl.getHTTPUtilities()
+# Username & password prefixes
+username_base = "user_"
+password_base = "pass_"
 
-connectionDefaults.defaultHeaders = \
-  ( NVPair('User-Agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060809 SeaMonkey/1.0.3'),
-    NVPair('Accept-Encoding', 'gzip,deflate'),
-    NVPair('Accept-Language', 'en-us,en;q=0.5'),
-    NVPair('Accept-Charset', 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'), )
+# Range of users (usernames: username_base_0 .. username_base_(users_count-1))
+users_count = 100
 
-# Host of the tested forums instance
-url0 = 'http://localhost:8080'
-
-# How many times (max.) the "next page" link will be clicked when viewing a post
-next_clicks_range = 1
-
 # Where the .dat files are stored
 dat_files_dir = "/home/adamw/jboss/forums-test/main/src/"
\ No newline at end of file

Added: labs/jbossforums/branches/tests/main/src/globals_main.py
===================================================================
--- labs/jbossforums/branches/tests/main/src/globals_main.py	                        (rev 0)
+++ labs/jbossforums/branches/tests/main/src/globals_main.py	2007-05-29 22:26:34 UTC (rev 12221)
@@ -0,0 +1,25 @@
+from HTTPClient import NVPair
+from net.grinder.plugin.http import HTTPPluginControl
+from globals import *
+from command_factories import *
+
+connectionDefaults = HTTPPluginControl.getConnectionDefaults()
+httpUtilities = HTTPPluginControl.getHTTPUtilities()
+
+connectionDefaults.defaultHeaders = \
+  ( NVPair('User-Agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060809 SeaMonkey/1.0.3'),
+    NVPair('Accept-Encoding', 'gzip,deflate'),
+    NVPair('Accept-Language', 'en-us,en;q=0.5'),
+    NVPair('Accept-Charset', 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'), )
+
+# Host of the tested forums instance
+url0 = 'http://' + base_url
+
+# How many times (max.) the "next page" link will be clicked when viewing a post
+next_clicks_range = 1
+
+# After how many seconds of delay a test should be marked as failed
+max_test_delay = 10
+
+# Which command factory to use
+command_factory = FileCommandFactory().next
\ No newline at end of file

Added: labs/jbossforums/branches/tests/main/src/log-pre-parser.py
===================================================================
--- labs/jbossforums/branches/tests/main/src/log-pre-parser.py	                        (rev 0)
+++ labs/jbossforums/branches/tests/main/src/log-pre-parser.py	2007-05-29 22:26:34 UTC (rev 12221)
@@ -0,0 +1,72 @@
+#!/usr/bin/env python
+import re
+import sys
+import getopt
+
+in_file_name = "test.log"
+#in_file_name = "../../localhost_access2007-05-20.log"
+#out_file_name = "out.log"
+
+in_file = open(in_file_name, 'r')
+#out_file = open(out_file_name, 'w')
+
+log_regexp_string = """\d+\.\d+\.\d+\.\d+ - - \[\d\d/.../\d\d\d\d:(\d\d:\d\d:\d\d).{8}"GET /index.html\?module=bb&(?:(\w+=\w+)&?)?(?:(\w+=\w+)&?)?(?:(\w+=\w+)&?)?(?:(\w+=\w+)&?)?(?:(\w+=\w+)&?)?[^"]*" (\d+) [^"]*"[^"]*" "([^"]+)".*"""
+log_regexp = re.compile(log_regexp_string)
+
+def file_iterator(file):
+    """Iterator over lines of a file"""
+    line = file.readline()
+    while line:
+        yield line
+        line = file.readline()  
+
+def get_op(param_list):
+    for param in param_list:
+        if param:
+            if param[0:3] == "op=":
+                return param[3:]
+    
+    return None
+        
+def print_line(date, param1, param2, param3, param4, param5, status, agent): 
+    print (date, param1, param2, param3, param4, param5, status)  
+        
+def print_scenario_line(date, param1, param2, param3, param4, param5, status, agent):
+    seconds = int(date[0:2])*3600 + int(date[3:5])*60 + int(date[6:8])
+    print "%d %s" % (seconds, get_op([param1, param2, param3, param4, param5]))
+ 
+m = {}
+def gather_statistics(date, param1, param2, param3, param4, param5, status, agent):
+    op = get_op([param1, param2, param3, param4, param5])
+    if not op:
+        op = "main"
+        
+    try:
+        m[op] += 1
+    except KeyError:
+        m[op] = 1
+    
+    return
+
+def print_statistics():
+    print m
+        
+log_match_function = print_scenario_line
+end_function = None
+        
+opts, args = getopt.getopt(sys.argv[1:], "s", ["settings"])
+        
+for opt, value in opts:
+    if opt == "-s":
+        log_match_function = gather_statistics
+        end_function = print_statistics
+        
+for line in file_iterator(in_file):
+    log_match = log_regexp.match(line)
+    
+    if log_match:
+        (date, param1, param2, param3, param4, param5, status, agent) = log_match.groups()
+        log_match_function(date, param1, param2, param3, param4, param5, status, agent)
+        
+if end_function:
+    end_function()
\ No newline at end of file


Property changes on: labs/jbossforums/branches/tests/main/src/log-pre-parser.py
___________________________________________________________________
Name: svn:executable
   + *

Modified: labs/jbossforums/branches/tests/main/src/main.py
===================================================================
--- labs/jbossforums/branches/tests/main/src/main.py	2007-05-29 21:06:11 UTC (rev 12220)
+++ labs/jbossforums/branches/tests/main/src/main.py	2007-05-29 22:26:34 UTC (rev 12221)
@@ -4,22 +4,85 @@
 from HTTPClient import NVPair
 import time
 import random
+import Queue
 
 from globals import *
+from globals_main import *
 
 from view_main import ViewMain
 from view_post import ViewPost
 from create_new_post import CreateNewPost
 
+# Creating objects to execute tests
 viewMain = ViewMain()
 viewPost = ViewPost()
 createNewPost = CreateNewPost()
 
+# Marking the starting time
 start = time.time()
 
+# Creating a queue which both holds the next user id number and prevents concurrent access
+current_user_id = Queue.Queue(1)
+current_user_id.put(0)
+
+def get_next_username_password():
+    """Returns a pair of strings: (next username, next password)"""
+    user_id = current_user_id.get()
+    new_user_id = user_id + 1
+    if new_user_id == users_count:
+        new_user_id = 0
+        
+    current_user_id.put(new_user_id)
+    return (username_base + str(user_id), password_base + str(user_id))
+
+# Creating a queue which prevents concurrent access to a command factory
+mutex = Queue.Queue(1)
+mutex.put(0)
+
+def make_thread_safe(function):
+    """Returns a function which behaves like the given one, but is protected from concurrent access."""
+    def mod_funct():
+        try:
+            mutex.get()
+            return function()
+        finally:
+            mutex.put(1)
+    return mod_funct
+
+# Defininf the command factory which will be used, basing on the one defined in globals_main
+thread_safe_command_factory = make_thread_safe(command_factory)
+
+def get_next_command():
+    return thread_safe_command_factory()
+    
+    
+def pure_fail_test():
+    grinder.statistics.forCurrentTest.success = 0
+    
+fail_test = Test(9, "Failing test - to big delay").wrap(pure_fail_test)
+    
 class TestRunner:        
-    def __call__(self):        
-        forum_id = viewMain()
+    def __init__(self):
+        (self.username, self.password) = get_next_username_password()
+    
+    def __call__(self):  
+        #forum_id = viewMain()
         #topic_id = viewPost(forum_id)
-        new_topic_id = createNewPost(forum_id)
+        
+        while True:
+            (offset, op) = get_next_command()
+            print (self.username, self.password, offset, op)
+                   
+            if op == "end":
+                break
+            
+            if offset != -1:
+                # Calculating how long we should sleep.
+                now = time.time()
+                elapsed_seconds = int(now-start)
+                if (elapsed_seconds >= max_test_delay):
+                    fail_test()
+                    continue
+                
+        #new_topic_id = createNewPost(forum_id, "admin", "admin")
         
\ No newline at end of file

Added: labs/jbossforums/branches/tests/main/src/out.log
===================================================================
--- labs/jbossforums/branches/tests/main/src/out.log	                        (rev 0)
+++ labs/jbossforums/branches/tests/main/src/out.log	2007-05-29 22:26:34 UTC (rev 12221)
@@ -0,0 +1,8 @@
+0 viewtopic
+1 viewtopic
+2 viewtopic
+2 viewforum
+3 viewtopic
+4 viewtopic
+5 viewtopic
+6 viewtopic

Added: labs/jbossforums/branches/tests/main/src/test.log
===================================================================
--- labs/jbossforums/branches/tests/main/src/test.log	                        (rev 0)
+++ labs/jbossforums/branches/tests/main/src/test.log	2007-05-29 22:26:34 UTC (rev 12221)
@@ -0,0 +1,50 @@
+64.74.196.205 - - [20/May/2007:00:00:00 -0500] "GET /index.html?module=bb&op=viewtopic&p=4045657 HTTP/1.0" 200 8354 "-" "NutchCVS/0.06-dev (Nutch; http://www.nutch.org/docs/en/bot.html; nutch-agent at lists.sourceforge.net)"
+218.102.126.150 - - [20/May/2007:00:00:00 -0500] "GET /wiki/attach?page=MailServicesPictures%2Ftb_usernames.jpg HTTP/1.1" 200 33354 "http://blogs.jboss.com/blog/acoliver/?permalink=66EC5E024FD36F07A3C3FED9A4E4DF98.txt" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
+218.102.126.150 - - [20/May/2007:00:00:00 -0500] "GET /wiki/attach?page=MailServicesPictures%2Ftb_trust1.jpg HTTP/1.1" 200 50949 "http://blogs.jboss.com/blog/acoliver/?permalink=66EC5E024FD36F07A3C3FED9A4E4DF98.txt" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
+218.102.126.150 - - [20/May/2007:00:00:00 -0500] "GET /wiki/attach?page=MailServicesPictures%2Ftb_compose.jpg HTTP/1.1" 200 49821 "http://blogs.jboss.com/blog/acoliver/?permalink=66EC5E024FD36F07A3C3FED9A4E4DF98.txt" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
+64.74.196.205 - - [20/May/2007:00:00:01 -0500] "GET /index.html?module=bb&op=viewtopic&p=3907246 HTTP/1.0" 200 8369 "-" "NutchCVS/0.06-dev (Nutch; http://www.nutch.org/docs/en/bot.html; nutch-agent at lists.sourceforge.net)"
+218.102.126.150 - - [20/May/2007:00:00:01 -0500] "GET /wiki/attach?page=MailServicesPictures%2Ftb_pwd.jpg HTTP/1.1" 200 17665 "http://blogs.jboss.com/blog/acoliver/?permalink=66EC5E024FD36F07A3C3FED9A4E4DF98.txt" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
+220.245.178.135 - - [20/May/2007:00:00:02 -0500] "GET /products/index HTTP/1.0" 200 3235 "http://www.jboss.com/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
+64.74.196.205 - - [20/May/2007:00:00:02 -0500] "GET /index.html?module=bb&op=viewtopic&t=108717 HTTP/1.0" 200 6481 "-" "NutchCVS/0.06-dev (Nutch; http://www.nutch.org/docs/en/bot.html; nutch-agent at lists.sourceforge.net)"
+85.0.16.141 - - [20/May/2007:00:00:02 -0500] "GET /index.html?module=bb&op=viewforum&f=231 HTTP/1.1" 200 7338 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+218.102.126.150 - - [20/May/2007:00:00:02 -0500] "GET /wiki/attach?page=MailServicesPictures%2Ftb_trust2.jpg HTTP/1.1" 200 27563 "http://blogs.jboss.com/blog/acoliver/?permalink=66EC5E024FD36F07A3C3FED9A4E4DF98.txt" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
+217.17.35.115 - - [20/May/2007:00:00:02 -0500] "GET /jbossBlog/blog/pfricke/?flavor=rss2 HTTP/1.1" 302 - "-" "Feed2Imap v0.9 http://home.gna.org/feed2imap/"
+218.102.126.150 - - [20/May/2007:00:00:02 -0500] "GET /wiki/attach?page=MailServicesPictures%2Ftb_gotit.jpg HTTP/1.1" 200 52847 "http://blogs.jboss.com/blog/acoliver/?permalink=66EC5E024FD36F07A3C3FED9A4E4DF98.txt" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
+85.0.16.141 - - [20/May/2007:00:00:02 -0500] "GET /modules/bb/templates/subSilver/subSilver.css HTTP/1.1" 200 8248 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+200.74.118.16 - - [20/May/2007:00:00:02 -0500] "GET /themes/jbosstheme/img/btn_go_red.gif HTTP/1.1" 404 231 "http://www.jboss.com/themes/jbosstheme/style/screen.css" "Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+64.74.196.205 - - [20/May/2007:00:00:03 -0500] "GET /index.html?module=bb&op=viewtopic&p=4038590 HTTP/1.0" 200 6480 "-" "NutchCVS/0.06-dev (Nutch; http://www.nutch.org/docs/en/bot.html; nutch-agent at lists.sourceforge.net)"
+220.245.178.135 - - [20/May/2007:00:00:03 -0500] "GET /themes/jbosstheme/style/global.css HTTP/1.0" 404 231 "http://www.jboss.com/products/index" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
+85.0.16.141 - - [20/May/2007:00:00:03 -0500] "GET /themes/jbosstheme/style/custom.css HTTP/1.1" 200 31674 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:03 -0500] "GET /themes/jbosstheme/style/global.css HTTP/1.1" 404 231 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:03 -0500] "GET /themes/jbosstheme/style/headings.css HTTP/1.1" 200 15727 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+220.245.178.135 - - [20/May/2007:00:00:03 -0500] "GET /themes/jbosstheme/style/layout.css HTTP/1.0" 404 231 "http://www.jboss.com/products/index" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
+64.74.196.205 - - [20/May/2007:00:00:04 -0500] "GET /index.html?module=bb&op=viewtopic&p=4046578 HTTP/1.0" 200 7571 "-" "NutchCVS/0.06-dev (Nutch; http://www.nutch.org/docs/en/bot.html; nutch-agent at lists.sourceforge.net)"
+85.0.16.141 - - [20/May/2007:00:00:04 -0500] "GET /themes/jbosstheme/style/layout.css HTTP/1.1" 404 231 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:04 -0500] "GET /themes/jbosstheme/style/navigation.css HTTP/1.1" 200 10746 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:04 -0500] "GET /themes/jbosstheme/style/pagelayout.css HTTP/1.1" 200 16964 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+220.245.178.135 - - [20/May/2007:00:00:04 -0500] "GET /scripts/menu.js HTTP/1.0" 200 1526 "http://www.jboss.com/products/index" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
+85.0.16.141 - - [20/May/2007:00:00:04 -0500] "GET /themes/jbosstheme/style/tables.css HTTP/1.1" 200 11667 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+137.132.3.7 - - [20/May/2007:00:00:04 -0500] "GET /products/jbpm HTTP/1.1" 200 3410 "http://sourceforge.net/projects/jbpm/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+64.74.196.205 - - [20/May/2007:00:00:05 -0500] "GET /index.html?module=bb&op=viewtopic&t=5355 HTTP/1.0" 200 6978 "-" "NutchCVS/0.06-dev (Nutch; http://www.nutch.org/docs/en/bot.html; nutch-agent at lists.sourceforge.net)"
+85.0.16.141 - - [20/May/2007:00:00:05 -0500] "GET /themes/jbosstheme/style/screen.css HTTP/1.1" 200 8374 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+137.132.3.7 - - [20/May/2007:00:00:05 -0500] "GET /themes/jbosstheme/style/custom.css HTTP/1.1" 200 31674 "http://www.jboss.com/products/jbpm" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:05 -0500] "GET /themes/jbosstheme/style/print.css HTTP/1.1" 200 1401 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:05 -0500] "GET /themes/jbosstheme/style/common.css HTTP/1.1" 200 12469 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:05 -0500] "GET /themes/jbosstheme/style/layout_new_branding.css HTTP/1.1" 200 10764 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+64.74.196.205 - - [20/May/2007:00:00:06 -0500] "GET /index.html?module=bb&op=viewtopic&t=102058&view=next HTTP/1.0" 200 7816 "-" "NutchCVS/0.06-dev (Nutch; http://www.nutch.org/docs/en/bot.html; nutch-agent at lists.sourceforge.net)"
+220.245.178.135 - - [20/May/2007:00:00:06 -0500] "GET /themes/jbosstheme/js/functions.js HTTP/1.0" 200 200 "http://www.jboss.com/products/index" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
+85.0.16.141 - - [20/May/2007:00:00:06 -0500] "GET /scripts/menu.js HTTP/1.1" 200 1526 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:06 -0500] "GET /themes/jbosstheme/js/functions.js HTTP/1.1" 200 200 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:06 -0500] "GET /elqNow/elqCfg.js HTTP/1.1" 200 1103 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+137.132.3.7 - - [20/May/2007:00:00:06 -0500] "GET /themes/jbosstheme/style/global.css HTTP/1.1" 404 231 "http://www.jboss.com/products/jbpm" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:06 -0500] "GET /elqNow/elqImg.js HTTP/1.1" 200 417 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+220.245.178.135 - - [20/May/2007:00:00:06 -0500] "GET /elqNow/elqCfg.js HTTP/1.0" 200 1103 "http://www.jboss.com/products/index" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
+85.0.16.141 - - [20/May/2007:00:00:06 -0500] "GET /themes/jbosstheme/img/logo.gif HTTP/1.1" 200 2174 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+167.10.240.87 - - [20/May/2007:00:00:06 -0500] "GET /products/seam/pages-1.1.dtd HTTP/1.1" 200 3683 "-" "Java/1.5.0_11"
+137.132.3.7 - - [20/May/2007:00:00:06 -0500] "GET /themes/jbosstheme/style/headings.css HTTP/1.1" 200 15727 "http://www.jboss.com/products/jbpm" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:06 -0500] "GET /images/languages/french.gif HTTP/1.1" 200 98 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:06 -0500] "GET /images/languages/german.gif HTTP/1.1" 200 107 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:06 -0500] "GET /images/languages/english.gif HTTP/1.1" 200 159 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:08 -0500] "GET /themes/jbosstheme/img/spacer.gif HTTP/1.1" 200 43 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:08 -0500] "GET /images/banners/jb_cert_ani_banner.gif HTTP/1.1" 200 6963 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
+85.0.16.141 - - [20/May/2007:00:00:08 -0500] "GET /images/btn_go_grey.gif HTTP/1.1" 200 229 "http://www.jboss.com/index.html?module=bb&op=viewforum&f=231" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"

Modified: labs/jbossforums/branches/tests/main/src/view_main.py
===================================================================
--- labs/jbossforums/branches/tests/main/src/view_main.py	2007-05-29 21:06:11 UTC (rev 12220)
+++ labs/jbossforums/branches/tests/main/src/view_main.py	2007-05-29 22:26:34 UTC (rev 12221)
@@ -10,6 +10,7 @@
 import random
 
 from globals import *
+from globals_main import *
 
 forum_id_regexp_string = """JBossForumsWindow(?:\;jsessionid=[^\?]*)?\?action=1\&v=f\&f=(\d+)"""
 forum_id_regexp = re.compile(forum_id_regexp_string)

Modified: labs/jbossforums/branches/tests/main/src/view_post.py
===================================================================
--- labs/jbossforums/branches/tests/main/src/view_post.py	2007-05-29 21:06:11 UTC (rev 12220)
+++ labs/jbossforums/branches/tests/main/src/view_post.py	2007-05-29 22:26:34 UTC (rev 12221)
@@ -10,6 +10,7 @@
 import random
 
 from globals import *
+from globals_main import *
 
 page_id_regexp_string = """\&page=\d+\"\>Next\<\/a\>"""
 page_id_regexp = re.compile(page_id_regexp_string)




More information about the jboss-svn-commits mailing list