When developing a website, I often need to test scenarios like this:
When user A logs in, she should see X button while user B can not
And doing this kind of testing requires me to do a lot of log in and log out with different test accounts, which is by no means convenient.
I wonder if there are any tool that can help me do this?
...
I wanted to test a method in my helper class but when I do something like:
require 'test_helper'
class ApplicationHelperTest < ActionView::TestCase
def test_flash_messages
flash[:notice] = "Hello World"
assert_equal "<div class=\"message-notice\">Hello World<\/div>", flash_messages
end
end
than I get "NoMethodError: undef...
Hardware is a x86-based platform with two network, usb, vga, and ps/2 ports.
I need to test self-assembled linux-base OS. Installation is without any GUI. How can I automate this proccess?
...
How to simulate clicking button outside the form in Rails? This button performs some javascript operations that add some elements to page. How can I test this?
...
I have a question on the test command in the Korn shell (ksh). I know -ne is for comparing integers and != is for comparing strings. How will the test command behave if one argument is a string and the other is an integer. I have below conditions in my code and both are working properly.
myCount=1
myCount=`expr $myCount+ 0`
temp=`ps -a...
So I have a method that implements IHttpHandler.ProcessRequest. It accepts an HttpContext parameter. This parameter is just a form that is filled out with some XML. Here is the HTML that I am using to generate the post context:
<html>
<body>
<form name="form1" method="post" action="http://localhost:7703/api.ashx">
<textarea name="XML...
I have 2 years of experience in Software Testing. I have worked on both Manual as well as Automation forms of testing. But, this time I have a got a chance in my company to become a Software Developer. I know opportunities like these rarely come in life and I want to make use of it. I could not get any job early in my career in the field...
I am looking for recommendations on test case writing software for Mac. I am aware of Seapine's Test Track software as well as Bugzilla, but I wanted to see if anyone else out there had recommendations? The software that will be tested is mainly in the iOS platform, though some apps are written to run on Android and in the OS X realms ...
I want to test the installation/deployment of my software on a variety of Operating Systems.
Is my only choice to do the following?
Purchase VMWare Workstation
Purchase the discs for each of the operating systems I want to test against
...
So I copied the sample code from the Moq home page pretty much verbatim, and am getting a castle proxy exception.
Here's my code (as a console app for an easier sample)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Moq;
namespace MoqTestConsole
{
public interface ILoveThisFramework
...
I'm tryting to write a cucumber/capybara test to reorder some items and then save them back. Any thoughts on how to best do this?
...
I write test automation and scripts that require windows authentication to the domain to access.
I don't like keeping them in the app.config because they are available in plain text.
I don't like prompting for input because then it isn't automated anymore.
If I hard code them in the assembly they are visible from .Net Reflector and they ...
I'm looking for a Tool to do
Test planning
Inserting test results
Searching previous tests and results
Comparing multiple test results
Making reports out of existing test
data
The tests could be almost anything. For example testing performance of a specific software in a specific hardware. The point is that it would be possible to se...
I'm retroactively writing some tests, using RSpec, for a Rails project.
I'm using the CanCan gem to provide authorization. I decided to write a spec that will test the ability.rb model.
I then went on to test my remaining models.
I've moved on to controllers, and I've run into a huge snag: I'm testing my abilities all over again!
Basi...
Does anyone have any good pointers/examples/links for writing WPF UI automation tests with applications utilising Infragistics controls?
...
I'd like to be able to set a condition from which to decide whether certain tests run in NUNIT.
For example if a global variable x = 1 then only run the tests from a certain class/assembly or only run the first test.
Is anything like this possible?
How would one go about doing this?
Thanks!!
...
I'm writing a Python client+server that uses gevent.socket for communication. SAre there any good ways of testing the socket-level operation of the code (for example, verifying that SSL connections with an invalid certificate will be rejected)? Or is it simplest to just spawn a real server?
Edit: I don't believe that "naive" mocking wil...
I'm trying to get JDBC transaction rollback when using Spring-test without success. When I run the following the SQL update is always committed.
package my.dao.impl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Rollback;...
Hi
we are expanding one of our projects in a major bank to include access via mobile devices. We are evaluating a few tools - inc. perfecto mobile, experitest and deviceanywhere.
From our initial evaluation perfecto and device anywhere cover a larger set of handsets inc feature phones. Experitest on the other hand is strong and simple to...
Hello,
Having problems testing a (working) upload in my Rails app (using 2.3.8):
class ProfilesControllerTest < ActionController::TestCase
test "creates a new profile" do
fixture_image = fixture_file_upload("#{RAILS_ROOT}/test/fixtures/files/avatar.jpg", 'image/jpeg')
post :create, :profile=>{:username=>'johndoe',
...