Hi, Marc,

Somehow I could not get debugger to work I tried two
ways,

1) set
logLevel.root=debug
logLevel.htmlunit=debug

in loig4j.properties file and made sure lib is in
CLASSPATH, 

2) set 

ANT_OPTS="-DlogLevel.root=debug"
and run "ant -DlogLevel.root=debug -buildfile
myfile.xml"

neither of these worked. Any clue??

Chang


--- Marc Guillemot <[EMAIL PROTECTED]> wrote:

> Hi Chang,
> 
> you need to configure log4j for that. If you use the
> classpath provided
> with WebTest, you just have to edit
> #WebtestHome#/lib/log4j.properties
> 
> Marc.
> 
> Chang Su wrote:
> > Marc,
> > 
> > could you let me know how to set log level to
> debug
> > for htmoUnit and webtest? I tried to use -debug
> > -verbose with webtest.sh however it  did not tell
> me
> > anything more. I trie to use -diagnostics  however
> it
> > just lists jar files, task availability, system
> > properties and that is it.
> > 
> > My webtest version is 1490. Ant version is 1.6.5.
> > 
> > thanks,
> > 
> > Chang
> > 
> >  
> > --- Marc Guillemot <[EMAIL PROTECTED]> wrote:
> > 
> >> Hi Chang,
> >>
> >> this code shouldn't cause any problem therefore I
> >> think that it is not
> >> triggered at all.
> >> Is it correct that the popup should appear just
> by
> >> selecting some field?
> >> (ie without clicking any button)
> >> Can you set the log level to debug to see what
> >> htmlunit does when the
> >> select is set?
> >> Btw: which WebTest build do you use?
> >>
> >> Marc.
> >>
> >>
> >> Chang Su wrote:
> >>> I am attaching more info here, and hope to get
> it
> >> to
> >>> work this time:)
> >>>
> >>> Selecting "DELETE" executes js script which
> does,
> >>>
> >>>
> >
>
wizard_popup('/LdomMgmt/faces/jsp/lifeCycle/Delete.jsp','DeleteDomain',500,750,'yes')
> >>> function wizard_popup(url, name, height,
> >> width,modal)
> >>> {
> >>>
> >>>     var newurl = url + "?&amp;WIZARD_NAME=" +
> >> name;
> >>> ....
> >>>     var popup = window.open(newurl, name, args);
> >>>     popup.focus();
> >>>     return false;
> >>> }
> >>>
> >>> why webtest is not seeing this new pop-up
> window?
> >>>
> >>>
> >>> thanks,
> >>>
> >>> Chang
> >>>
> >>> --- Chang Su <[EMAIL PROTECTED]> wrote:
> >>>
> >>>> Hi, Marc, 
> >>>>
> >>>> And I tried to print the windows as you
> suggested
> >> in
> >>>> other emails after I do <setSelectField>
> >>>>
> >>>> <groovy>
> >>>> def windows = step.context.webClient.webWindows
> >>>> def index = 0
> >>>> windows.each
> >>>> {
> >>>>     println index + "-> name: " + it.name + ",
> >> url:
> >>>> "
> >>>> +
> >>>>  it.enclosedPage.webResponse.url
> >>>>         index++
> >>>> }
> >>>> </groovy>
> >>>>
> >>>> It is only showing one window,
> >>>> case:
> >>>>    [groovy] 0-> name: , url:
> >>>>
> >>
> https://san-11.west:6699/LdomMgmt/faces/jsp/LdomMgmt
> >>>>
> >>>> why it is not finding the new pop-up window??
> >>>>
> >>>> thanks,
> >>>>
> >>>> Chang
> >>>>
> >>>>
> >>>>
> >>>> --- Chang Su <[EMAIL PROTECTED]> wrote:
> >>>>
> >>>>> Hi Marc,
> >>>>>
> >>>>> Thanks for reply. So I am doing this,
> >>>>>
> >>>>> <verifytitle
> >>>>> text="All Domains"/>
> >>>>>
> >>>>> <setSelectField
> >>>>> description="Set value to Delete"
> >>>>>            
> >>>>>
> >
>
xpath="//[EMAIL PROTECTED]'form1:table1:actionsBottom:lifecycleActions']"
> >>>>> saveResponse="true"
> >>>>> value="DELETE" />
> >>>>>
> >>>>> <verifytitle
> >>>>> text="Delete Domain"/>
> >>>>>
> >>>>> however it failed here  Expected "Delete
> Domain"
> >>>> but
> >>>>> got "All Domains" which is still the previuos
> >>>>> window.
> >>>>> also response.html shows the previous
> response.
> >>>>>
> >>>>>
> >>>>>
> >>>>> thanks,
> >>>>>
> >>>>> Chang
> >>>>>  
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> --- Marc Guillemot <[EMAIL PROTECTED]>
> wrote:
> >>>>>
> >>>>>> Hi Chang,
> >>>>>>
> >>>>>> forget (2) this is just a warning from your
> >>>>> browser
> >>>>>> (which you can
> >>>>>> deactivate in most browsers) and just perform
> >>>> the
> >>>>>> other steps. Normally
> >>>>>> you don't need any <selectWindow> because you
> >>>> just
> >>>>>> work on the "focused"
> >>>>>> window.
> >>>>>>
> >>>>>> Marc.
> >>>>>>
> >>>>>> Chang Su wrote:
> >>>>>>> Hi, 
> >>>>>>>
> >>>>>>> sorry that I have been posting so many
> >>>> questions
> >>>>>>> recently,
> >>>>>>>
> >>>>>>> I have a BUI page with a drop-down list, 
> >>>>>>> 1) if I select on one field from the list
> (say
> >>>>>>> "DELETE"), it brings a warning dialog ("You
> >>>> have
> >>>>>>> requested an encyprted page ...", 
> >>>>>>>
> >>>>>>> 2) if I click on "ok" on the warning dialog,
> >>>> it
> >>>>>> opens
> >>>>>>> another window which inlcude some texts,
> >>>> another
> >>>>>> list
> >>>>>>> and three buttons (previous, next and
> cancel)
> >>>>> with
> >>>>>>> title "https://san-7:6699 - Delete Domains".
> 
> 
=== message truncated ===



 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to