[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4758: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4759: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4760: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
siliconforks.com • View topic - Report problems with JSCoverage-Server Proxy

Silicon Forks » Forum

It is currently 2019-11-17 1:07 am

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 2011-02-16 3:45 am 
To Whom It May Concern:

I have a website that is heavily based on JavaScript and is now about three and half years old. It has gone through some drastic changes but I'm afraid we have not done a good job of pruning out old code.

I would like to begin pruning the JS and I believe that your tool would be very helpful.

We have JSUnit tests for a portion of the code but we also have a large suit of Selenium tests.

If I correctly understand how the JSCoverage-Server with the proxy option turned on works, I believe that I could enable the proxy and run my suit of Selenium tests. When finished look at the report to see what JS I could begin to prune.

I wanted to try this on my dev station. I'm running IIS and my site can be found http://localhost:11078.
Then cd to the JSCoverage dir and run: jscoverage-server --verbose --proxy
Change FireFox (tools > options > adv > settings > manual proxy... > 127.0.0.1:8080
Then load http://localhost:11078 into FF.
Click around the site then attempt to generate a coverage report by going to http://localhost:11078/jscoverage.html.

At this point I get a 404 error.

I feel like I'm simply missing a step but unsure of what that is.

I appreciate any help that you can give me.

Thanks,
Eric


Top
  
Reply with quote  
PostPosted: 2011-02-16 5:06 pm 
Offline

Joined: 2008-10-11 6:52 pm
Posts: 120


Top
 Profile  
Reply with quote  
PostPosted: 2011-02-16 5:38 pm 
I'm afraid that I was not seeing anything display after in the console after I entered the line.

jscoverage-server --verbose --proxy

In regards to FF, I turned "No Proxy" off and "Manual Proxy" on. With 127.0.0.1 in the http field and 8080 in the Port field.

Thanks for your reply.

-eric


Top
  
Reply with quote  
PostPosted: 2011-02-16 6:05 pm 
Offline

Joined: 2008-10-11 6:52 pm
Posts: 120


Top
 Profile  
Reply with quote  
PostPosted: 2011-02-17 12:21 am 
I finally got what you getting at.

The value was set to:

localhost, 127.0.0.1


Top
  
Reply with quote  
PostPosted: 2011-02-18 3:57 am 


Top
  
Reply with quote  
PostPosted: 2011-02-18 9:25 pm 
Offline

Joined: 2008-10-11 6:52 pm
Posts: 120


Top
 Profile  
Reply with quote  
PostPosted: 2011-02-18 9:47 pm 
Ed,

It sounds like option#3 would work the best with my selenium tests. It would be easy to add hidden webpage with the button and a step press the button at the beginning of my test suite.

I appreciate your help and look forward to trying it out this weekend.

Thanks,
Eric


Top
  
Reply with quote  
PostPosted: 2011-02-21 3:35 pm 
Ed,

Everything you suggested worked. The only problem I'm having now is that my selenium session does not appear to be using the proxy settings that I've set up in FF or Chrome. So now I'm just searching the web and trying to track down answers from others who have gotten this to work.

Thanks again for you help and what looks to be a great product.

-eric


Top
  
Reply with quote  
PostPosted: 2011-02-22 4:29 am 
Offline

Joined: 2008-10-11 6:52 pm
Posts: 120
Are you using Selenium RC? Normally that will create its own Firefox profile instead of using the default profile. I think you can specify a profile to use with the -firefoxProfileTemplate option.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group