How to do 404 link testing through selenium rc for complete website? - selenium-rc

How can i verify a complete website's link(mostly links that are redirecting to 404 page) by using Selenium RC. Previously I tried to do this thong by using xenu and web link validator but in there results most of the links are showing 500 internal serevr error. And for the pages they are showing 500 internal server error actually don't exists in the web site.
So what is the concept if we can crawl through the website using Selenium RC.?

Related

Cypress - Unable to open link/anchor tag urls in Chrome

I am trying to navigate to different parts of my web application by clicking on simple anchor tags via cypress using cy.click() method.
The url in the browser updates to the new url but the page load fails. It gives an error and subsequently all the following steps fail. This error is not valid cause I can manually and on Firefox navigate to this with the same steps.
I have tried to cy.wait() also tried to assert using cy.should() till an element is visible but the page itself fails to load.
If I use cy.reload() the page reloads and works fine (new url is already set in the browse).
Note: I am facing this issue only in Chrome and Electron. This is not a problem in Firefox which is surprising.
cy.get("button[href='someLink']").click()
cy.reload()
Cypress runner New Url
On click in the cypress runner I can see "new url" but the redirect fails or just doesn't happen in chrome
In the console I can see New url and Url updated by: pushState
Console url update by pushState
Is the issue with the web app? Or is there a bug on chrome side or cypress is simply not able to route to the url?

Status Aborted when making http requests with DELETE method

I've been trying to set up an image uploader using Blueimp jQuery File Upload plugin. Everything works fine in my local development environment, but when I deploy my app to a shared hosting environment (000webhost), the ajax requests via DELETE method don't work. I can upload images, but cannot delete them.
I can't find the reason why this is happening. Firebug says that the request is in Aborted status, and I get no response from the server.
I'm using Yii 2.0.12 advanced application template.
What might the issue be? Maybe a problem with the request headers?
This is a screenshot with the info that Firebug provides:
This is my error:

I am getting a 503 HTTP error when using JMeter, but web page loads on browser just fine

I am using JMeter version 3.2 to perform load testing on a page with HTTPS protocol and I am getting 503 HTTP response code.
On the other hand, when I type the URL on Browser the page is loaded.
Using Chrome Browser I can see the result of the request:
result of the request
The page has been shown. My problem is that I am using HTTP response code on JMeter script to evaluate the response code.
Fistly, does anyone know why I am getting 503 response code even I can see the page?
Secondly, how can I overcome this issue to get Jmeter script rightly done ?
Thanks.
Marcos
JMeter will automatically fail the parent sampler if one of the embedded resources fails to load. This is normal default behaviour and the fact you have HTTP Status Code 503 indicates an error in your application.
There are at least 2 ways of working this around:
Filtering out the "favicon" request using HTTP Request Defaults. On the "Advanced" tab there should be "URLs must match" section which can be used for excluding certain domains from your load test, the relevant regular expression would be something like:
^((?!favicon).ico)*$
Configuring JMeter for not to failing when there is an error in the embedded resources. Add the next line to user.properties file (located in JMeter's "bin" folder)
httpsampler.ignore_failed_embedded_resources=true
JMeter restart will be required to pick the property up.
It's favicon which you may not have in web site.
When you enter web site in browser it can happen too.
Browser search for favicon to show small icon of web site similar to mobile application. Can see cisco answer:
browsers will show an icon to the left of the URL. This known as the
'favicon.ico' and is typically fetched from website.com/favicon.ico.
Your browser will automatically request it when browsing to different
sites
You are actually mostly getting 200 responses. The 503 response is just for the requested resource "favicon.ico" I dont know what that is, but it looks like all the other requests for that page are returning 200. Im guessing favicon.ico is some default image for the ui or something?

Html5 pushstate internal service error when page refresh, or view source code

i am attempting to copy a tutorial example found here http://html5.gingerhost.com/ but whenever i try to refresh the page it takes me to a "500 Internal Server Error". also when i click the link and the page loads the other content, when i look at the source code it only shows my another "500 Internal Server Error"
please help!
thanks alot!
This is because the server needs to be able to understand the URLs too. So for example, you're page is at http://example.com. You use a link's click event to make it http://example.com/more-info. But if http://example.com/more-info doesn't exist on the server, refreshing the page won't work properly because the browser won't know that /more-info is actually part of the index page. So pushstate only works if the client and the server both recognise the new URLs.

MVC3 to MVC4 upgrade issue

I've updated my MVC3 site to use MVC4 today and have come across a problem. When navigating to a particular url (the url for an MVC area) I get this messaage in Firefox
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This used to work with MVC4. Chrome still does work with MVC4.
Any ideas?

Resources