Telerik Test Studio - Run this test button is disabled - telerik

I have downloaded the latest test studio from Telerik website.
I have created a test based on the Sample tests (Load Tests) shipped with telerik. However, When I am trying to run the test I get this error "We are unable to run the tests. Please make sure that the controller that you are using have enough users allocated..." . Also the Run this test button is disabled. So I canNot run the test.
I tried to record a new test and still same result.
Does anyone knows what is this issue. I am following the guide on this video: http://www.youtube.com/watch?v=Ekx7hjtDSbM&feature=c4-overview&list=UUSTKUvLyGUg-TIuN5qW48ZA
Does anyone know what this error is?
thanks

You have to do the following to make it work:
Click on manage icon.
Then on Add Scheduling Service.
Type in the Computer Name/IP, test connection and click ok.
Drag the slider in the balance column to set the number of users and save settings.

Its very easy. First you need to configure your controller.
1.Click on 'Manage' button.
2.'Manage Users' window will opens.
3.Click on 'Add Scheduling Service' button.
4.'Add Scheduling Service' window will opens.
5.Enter your 'Computer Name/IP'.(How to find name of your computer :http://windows.microsoft.com/en-in/windows/find-computer-name#1TC=windows-7).
6.Click on 'Test Connection'.
7.If you enter correct 'Computer Name/IP' then success message will appear 'Great! We were able to connect to that Scheduling Service'
8.Click 'Ok'
9.Finally 'Save'.
You can see that 'Run Test' will get enable. :)

Related

Unable to run all values from csv file while doing a performance test

Im using VS Web Performance Test Tool.
My Application has a login and few functionalities but doesnt have a logout . I one closes the browser and opens , it asks for login .
Now, i have 5 rows in excel , but only the first is run and it stops.
Please let me know if anyone knows how to make all rows run.
Thanks,
SK
By default, running a Web Performance Test (WPT) only does one execution of the test. A WPT can be called from a Visual Studio Load Test to run it many times by many virtual (i.e. simulated) users (VUs).
A data driven WPT can easily be run more than once by either of two methods.
After the test has been run once, click the "Edit run settings" on the Web Test results viewer. The modified run settings only apply to runs started by clicking the "Click here to run again" and are lost when the Web Test results viewer is closed. See here for more details.
The default can be changed in a .testsettings file. If no such file is already in the solution, then use the context (right click) menu of the solution in Solution Explorer and select Add => New item then follow the prompts to add a Test settings file. The Web test section of the file controls how WPTs are executed. See here for more details.

Cannot edit "Register with Test Controller"

Test Agent is installed on a server. When I try to Configure the Test Agent, I am not able to edit the options in the "Register with Test Controller" part. This is checked but completely grayed out. I want to change the test Controller port but can't.
Any suggestions? I am admin.
screenshot of Test Agent configuration
Your Test Agent is part of an Environment(you can see that in your screen shot). SO if you want to change the test controller you will have to do it through "Microsoft Test Manager"(MTM). Here are the steps.
- Open MTM
- Go to "Lab Center" (its a drop down on top)
- When you select lab center, you can see "Environments" Tab. It will list all the test agents.
- Locate your test agent(by name). Open it.
- Go to Advanced Tab and change your test controller there.
- Proceed to next steps to finish the step.

Launch a program when computer is connected to internet

I'm using windows 7. I wrote an application to fetch contents from a webpage. I want that application/ script to be executed automatically once the computer is connected to the internet.
I tried Task scheduler, but I'm unable to find an event when computer is connected to internet.
Thanks
Found answer. Thought it would help someone so sharing.
To trigger an event on connecting to the network:
Open the Task Scheduler. Programs > Accessories > System Tools.
create a new task by clicking Create Task in the Actions panel on the right side.
add task
Give the task a name.
On the Triggers tab, click New... and select On an Event from the dropdown box.
dropdown trigger
Log: Microsoft-Windows-NetworkProfile/Operational
Source: NetworkProfile
Event ID: 10000
Click OK, then go to the Conditions tab.
Check the box for Start only if the following network connection is available and choose the network you want to run the script with
Under the Actions tab, click New... and select Start a program. Enter the location of the script file you want to run, then click OK.
Set any other task settings you want to, then click OK.
Setting an event for when you disconnect from the network:
Follow steps 2-4 above
Use the following event trigger settings:
Log: Microsoft-Windows-NetworkProfile/Operational
Source: NetworkProfile
Event ID: 10001`
Skip steps 6-7, as you will no longer be attached to any network at all. This event will therefore run any time you disconnect from any network.
Follow steps 8-9 again

How to attach a Visual Studio debugger to a Managed type process?

I've been following this guide to debug a Windows Service application.
Basically, I need to attach the Visual Studio debugger to the process started after installing the Windows Service that has been developed. However, VS doesn't allow me attach the debugger to this process as shown in the following picture:
How can I attach the debugger to this process? If I clicked on any of the other processes the Attach button becomes enabled.
Any help would be greatly appreciated
check the checkbox Show processes from all users, then you will see AutomatedReports.exe. Attach that (not AutomatedReports.vshost.exe)
vshost is a host process to help with the debugging. More info on this MSDN Link
Also you need to place the following line in your service code where you want to hit the break point.
System.Diagnostics.Debugger.Break();
The service is probably running on a separate user account. Check the "Show processes from all users" checkbox and attach the debugger to AutomatedReports.exe process.
Also make sure that you are running a Debug build of the service, otherwise, you won't be able to debug a lot.
Have you tried to change the type of the code you are debugging?
Click on "Select ..."
Select "Debug these code types"
You can then select Types like: “Managed (v4.0…)"

Error message - You need to specify full path to an executable file+mvc

I am working on an MVC project- for changing the default browser I added a web form and by right-clicking, I changed the default browser, but now when I tried to run the MVC app it showing an error pop up."You need to specify the full path to an executable file"
Can anyone help me to fix it?
Right click on Project file ( .csproj) and select Properties.
Go to the Web tab.
Choose specific page radio button ( its The start external program causing the problem).
I did the same default browser trick that you did and ended up with the same error every time I tried to run the app.
I tried:
Using 'Browse With...' and manually pointing to the exe of one of the browsers
No joy
running devenv /resetsettings
No joy
Installing WoVS Default Browser Switcher and switching between browsers
No Joy
In the project properties changing to 'Don't open a page. Wait for a request from an external application' then changing back to 'Specific Page'
No more error!
As far as I know the last step is all that was needed but just in case a previous step had a side effect I thought I'd list them all.
Hope that fixes your problem, it's a truly awful error.

Resources