Changeset 40 for launchpad_test.py

Show
Ignore:
Timestamp:
07/17/06 01:07:24 (2 years ago)
Author:
ploum
Message:

#21 cannot add a comment to a bug

First step in bug editing ! Yeah ! I see the light ! I see the light !

Warning : now, Conseil depends from python-mechanize

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • launchpad_test.py

    r38 r40  
    1212 
    1313#zeurl="https://staging.launchpad.net/bugs/51835" 
    14 zeurl="https://staging.launchpad.net/products/launchpad/+bug/51835" 
     14#zeurl="https://staging.launchpad.net/products/launchpad/+bug/51835" 
     15zeurl="https://staging.launchpad.net/products/launchpad/+bug/51835/+addcomment" 
    1516base_url = "https://staging.launchpad.net/" 
    1617 
     
    5152#print "$$$$$$$$$$" 
    5253#print "*****MODIFY THE BUG****" 
    53 modify=forms[1] 
     54#modify=forms[1] 
    5455#print "*****ADD A COMMENT****" 
    55 comment=forms[2] 
     56comment=forms[1] 
    5657 
    57 modify.set_value(["Rejected"],name="field.status") 
     58#print modify 
     59print "****" 
     60print comment 
     61comment.set_value("Tentative de commentaire","field.comment") 
     62#modify.set_value(["Rejected"],name="field.status") 
    5863#modify["field.status"]=["Rejected"] 
    59 request = modify.click() 
     64#request = modify.click() 
     65request = comment.click() 
    6066print request 
    6167result = urllib2.urlopen(request) 
    62 print result.geturl() 
    63 print result.info()  # headers 
    64 print result.read()  # body 
     68#print result.geturl() 
     69#print result.info()  # headers 
     70#print result.read()  # body 
    6571 
    6672toprint = result.read()