How To Integration Testing On Application Without Necessarily Running All The Tests Via The Browser
Jun 4, 2010
ASP.Net MVC - How should i do integration testing on an ASP.net MVC application without necessarily running all the tests via the browser?
View 1 Replies
Similar Messages:
Oct 27, 2010
I'm currently building a .net web application that uses WCF web services to allow a Flex front end to access the database.
I'm in the process of setting up some unit/integration style testing on the web services and am trying to work out the best way to allow the tests to access and modify data in a separate test database.
Currently, the connection string in my unit test project points to my testing database, and the connection string in my web services project points to my development database. However, as I am using Linq it appears that when I call the web service methods from my test class, it uses the development database connection string. I have looked into creating mock objects or in-memory database but I believe the same issue would occur.
Is there a way to get this to work, or is my entire idea about what I want incorrect, in which case is there a better way to set this up?
View 3 Replies
Nov 24, 2010
I have written some database integration tests in the format of MS unit test. If I run each test, it runs fine. If I run 2 integration tests, it runs fine. However, if I runs 3 or more test at the same time, one test will show "In Progress", and other shows "Pending", basically, it does not make any progress at all, stays there forever. I turned on SQL Server Profiler, it does not show the test hit the database at all.
Here are some examples of my method:
[Code]....
Here are examples above method integration tests:
[Code]....
View 1 Replies
May 4, 2010
I need a Continuous integration tool that will support both .Net Unit tests and Javascript unit tests and perform the builds.It looks like my main options are CruiseControl.NET using JUnit and NUnit or Team City and JS Test Driver.
Are there any other options and which ones have you used or had good or bad experiences with.
View 1 Replies
Nov 19, 2010
i have a .NET 3.5 solution with an asp.net(web site) project with fluentnhibernate and it's test project(class library project).i've referenced the asp.net project in the test project and with all fluentnhibernate/nhibenate dlls.
What i fail to comprehend is that, on a run of a webform (hit from browser) let's say Test.aspx, building of schema is successfull and i could see the tables in my database.
here is the method i call on Test.aspx.cs
[code]....
So from my comment the NullReferenceException happens when accessing the connectionstring. I don't have the explanation on why that happens.
View 2 Replies
Jan 19, 2011
My requirement/concern is to test web application locally in multiple browsers with various versions.
If any tool is available, please let me know..
View 4 Replies
Mar 30, 2010
I need to run the HttpContext.Current.Server.Execute method in my ASP.NET application. This application has a WCF operation that does some processing. Currently, I am running a Server.Execute call from within my WCF operation and getting the results I would expect. However, I would like to do this asynchronously.This is where my problem comes in. In an error to run Server.Execute asynchronously, I tried running Server.Execute in the DoWork event handler of a BackgroundWorker. Unfortunately, this throws an error that says
"object reference not set to an instance of an object"
The HttpContext element is not null. I checked that. It is some property nested in the HttpContext object that appears to be null. However, I have not been able to identify why this won't work. It happens as soon as I move the processing to the BackgroundWorker thread. My question is, how can I asynchronously execute the Server.Execute method? Are there options beyond BackgroundWorker that will work?
View 2 Replies
Oct 21, 2010
In my project we use UnitTests (MsTest). We run them manually and in the build script.But for some environments where we deploy manually.We are in the need of having some smoke tests. At the moment I made this smoke tests "manually" (Login, create an user, create a licence, create a product, etc). I know I can run unit tests from command line or from visual studio but...Do you know if is possible to run these mstests (or probably a small subset) from an .aspx page and show the results?EDITED: wondering if mstests or something is able to run the tests and have something visual to show in an .aspx page similar to a list of tests passed and tests failed...I am thinking on running only a small subset of tests (5-6)
View 1 Replies
Jan 15, 2011
I want to write a few web tests (over WatiN/Selenium + CassiniDev web server) for my asp.net web application.Problem I encountered is that I dont know what to do in such situations: there is a page where user can click the button to call some third-party service. In my web test i want to create mock of this service, which will always return static value (some value in these test case and other value in other test case).How can i do that?
Currently i use IoC/DI container Microsoft Unity. And my pages gets his dependencies in a manner described in http://msdn.microsoft.com/en-us/library/ff664622%28v=pandp.50%29.aspx.
The only solution that comes to my head is: place all dependencies in web.config for each test case and copy necessary web.config on SetUp of test.
View 1 Replies
Mar 15, 2010
I would like to seek your suggestion for the tool faciliate the multiple-browser testing of web site. ASP.NET is my current working environment.
View 6 Replies
Apr 15, 2010
I am using a style sheet linked to a master pageThere are many styles on the css page that are working and have been working for quite some time on the master pageI can't put any new text inside a <div> tag on the master page and then create a style for it - the style does not get appliedThey style does get applied in design view but not in the browder when I run the website
View 1 Replies
Sep 14, 2010
integration of Google Calendars in the website? I need to replace the existing calendar control in the website with the Google calendar. I am trying to merge the events with Google Calendar so that events are posted/ tracked in Google Calendar, and events added to the Google Calendar would be shown in my website. I want some working sample which will provide me some idea to integrate the Google calendar in the website.
View 1 Replies
Mar 31, 2010
i am saikiran new to this site and i am a begineer of asp.net i faced small error when i tried to integrate ms access 2007 database with an asp.net application.error is:could not find installable ISAM. i have given the code i used in
Imports System.Data.OleDb
Partial Class dealerreg
Inherits System.Web.UI.Page
[code]...
View 9 Replies
Sep 23, 2010
I have a web page on which there is a gridview control. The gridview contains the grades (in textbox controls in each row of the gridview) for students and allows entries and updates. The student may eventually end up with 200+ grade records for all the lessons and units in a course. I have quite a few regular users, and only one reports a recurring problem as follows: When they have entered some new grades for a student and saved them, they go back later and find that whole blocks of grades that had been entered prior to the last grade entries have been blanked out.
That is, the grade records still remain, but there are no grades in them (the grades are blank). These textboxes were not necessarily visible on the screen (as the gridview is contained in a panel with scrollbars), but were still populated when the user was entering the other grades. Has anyone heard of any viruses that blank out textboxes in forms that are displayed on a screen? I have checked my code and found nothing that would cause the old values to be blanked out. Moreover, I have other heavy users who do not have this issue.
View 1 Replies
Feb 23, 2010
I have a system created that a user at one of our other locations and on their server inserts a record. That data is then replicated to a central server. Users working on the central server are allowed to edit that record which means I have to lock the editing capabilities at the location the record was created.
However, i would like the creator of the record to be able to edit it so I am thinking about redirecting them across servers to edit the record on the central server. IS that bad practice and why??The reason I only allow editing on one of the copies of the record is to prevent it from being copied over in replication
View 2 Replies
Sep 3, 2010
I want to imlement the Unit Testing in my asp.net web application.How to identify the scope of this. I mean, How should i start on this front.
View 2 Replies
Jul 29, 2010
I want to test asp.net application for stress, load and performance. Please guide me what free tools should be used for this ? Is there any tool which particularly can be used to analyse individual components, functions and scripts and resources they use ?
View 2 Replies
Jun 8, 2012
i have made a project in c# and i want to do automation testing for it.
View 1 Replies
Feb 12, 2010
I need a book to recommend strategies for load-testing an ASP.NET application with SQL Server backend.Some info that may be useful:how to write a load test planwhat perfmon counters to use andtypical threshold valuesfinding bottleneck various load testing tools
View 2 Replies
Jun 30, 2010
I am trying to load test a web application, but I am having a hard time finding good tools that are affordable. I cam across Web Performance Load Testing Tool which is pretty cool, but limits you to 10 users and after that it costs thousands. any good techniques for load testing a web application?
View 5 Replies
Nov 26, 2010
I am currently building a web application that will involve many servers to get it to run efficiently. I am trying to test this web site at home and I have a few computers running the website. To connect to the website I would type this into the address bar http://192.168.0.200:8080 or I would typehttp://192.168.0.201:8080. However when I transfer my site from one computer to another the web browser can no longer read the cookies. I would like to set up a home DNS server and have the computers in my house access the site like this w1.MySite.com and w2.MySite.com instead of http://192.168.0.200:8080 or I would type http://192.168.0.201:8080 so I can test if my cookies are working accross subdomains. how to set up a local DNS server so I can do this?
View 3 Replies
Nov 28, 2010
Ive got an ASP.net web application and was testing the pages.At the moment I store a variable in the
System.Web.HttpContext.Current.Session[
say the user is authenticated when they have been verified on login.So if the login is successful the authenticated is set to true.This is checked on every page load to make sure they have logged in.What I did was to log in and then the Main Menu page is displayed.I copied the address of this, set the page to goggle's page then pasted the address back into the address bar and the page loaded back up.How can I stop this from happening?Should have some mechanisim to prevent this?If so how.
View 2 Replies
Aug 26, 2010
I am lookinf for a Unit testing Tool for asp.net web application. i intended to use visual studio 2008 web test. Please tell me where can i get nice tutorials to start up on this tool. and also suggest me is any other web testing tools out there.
View 1 Replies
Mar 22, 2010
For developing a VS-2008 application at developing stage best softwares for test the application.we found some of the testing applications like NUnit and MSUnit, which are the softwares best to test the application at developing stage.
View 2 Replies
Feb 23, 2011
Recently for a class to implement unit test for one of its private methods I used PrivateObject by creating private accessor instead of refelection, to which i received a code review comment as below
"My main concern with Private Object is the use of object[] in constructor. It replaces strong typing enforced by compiler with JavaScript-style run-time error detection.Consequently , personally, I would not recommend it."
Comments above confused me beacuse as per my understanding reflection also needs the object[] to invoke any method.
View 2 Replies