I am admittedly new to unit testing in VS2010, but I'm having a problem that I can't seem to resolve.
No matter how many classes I have in Test project decorated with [TestClass] or how many methods within those test classes are decorated with [TestMethod]. Whenever I run all tests in the solution. only one test gets run. and it passes. all the others are ignored.
Is there some master list I'm suppose to update? If so where is it!?
Thanks!
In the toolbar at the top of your vs window click the Test menu item
Select "Create New Test List" Give the list a name and click ok.
In the "Test List Editor" tab, select the "All Loaded Tests" check box in the left column
in the right column, right click and select "Run Checked Tests"
That should do it.
Good Luck,
Patrick
If you have a test method with one or more parameters, it will not get run.
try to use test methods with no parameters.
Related
I'm a beginner for developing intelliJ plugins. I've already established connection from Jubula to my AUT.
I want to write a test suite, to check the availability of a sub menu item in intelliJ.
Please assist me.
If you don't want to dig too deep into Jubula, then all you have to do is use the Observation Mode (camera icon) and record clicking on your menu item.
When the test is executed it will do exactly the same; it will mark the test failed if the menu can not be clicked.
There's also a cheat sheet on how to test menus available via Help/Cheat Sheets. The documentation for testing menus is here:
https://testing.bredex.de/files/content/software/documentation/reference/components/ch03s02s05.html
(the link to each action description is at the bottom of the page)
I've just started using TestLink to manage testing, and a test plan containing a number of test suites and test cases is currently being executed. One of my testers is a bit overwhelmed by the number of test cases I've assigned him. How can I reassign some of his test cases to another team member?
You just need to go to project overview and click on "Assign Test Case Execution" in the right panel. Then select the test cases or test suites you want to reassign and the application will show you the TC information, assigned to and assign to fields.
Select the new assignee and click on "Save". Also, bulk upload functionality is available.
That's all.
How to start a component test in Sitecore 8?
In sitecore7.5 there was a button Start Test on the ribbon, now under the Optimizaion menu in Experience Editor there are Lists section and Create a page test. But not Start test button.
Just to clarify what I'm trying to achieve. I've an Item that has a rendering in Presentation Details. On that rendering there is a MV test defined. I would like to start this test.
Sitecore 8 now has new A/B testing features.
In the Page Editor (Experience Editor) there is an Optimization tab. Here you can Click "Start a Test". Instead of just being able to test certain controls individually you can now test a complete variation of a page.
You then go to the Experience Optimization option on the Dashboard to see how well your variations are performing.
You can still test individual components in the Page Editor as before by clicking on the component and selecting the "Test a component" option in the ribbon above the component.
In Sitecore 8 you should run the component test using the workflow command "Approve with test". Take a look at this document
I have several classes named Test in a project I am working on. Is there a way I can get Intellij to ignore them when I navigate between the Test and Test Subject, so I don't get a popup menu?
It's not possible yet, please submit a request.
I'm experiencing a problem with the severity of the bug work items generated by me builds occasionally failing while using TFS 2010 (after checking in bad sources of course).
My boss has decided that a build failure for my project should rank 2nd most important in the severity ladder, not first. He want to reserve the critical status for project which rake in the money, not the projects for building the codebase of our CMS.
I'd still like to be notified when a build fails, but he won't allow me to keep the severity of the bug at 1 - critical, which is the default value of the generated bug work items.
I've been trying to change the work item severity, but I can't seem to be able to find the location in the buildtemplate I've been using for my project. (DefaultTemplate.xaml, just the default agile team project process template)
I've searched the whole template for the activity which adds a work item if the build fails, but to no avail.
I suspect it is some setting in one of the activities or that it is dependent on the associate changesets and work items activity, but that activity doesn't seem to have a setting for setting a severity.
I'm not very skilled when it comes to editing these build templates, but so is noone else over here, so I'm it.
I've found a blog which claims you can change this, but the template used seems to be different from the one I use.
http://geekswithblogs.net/jakob/archive/2010/04/28/modify-build-failure-work-item-in-tfs-2010-build.aspx
I've tried finding the IfCreateWorkItem activity mentioned in the blog post in the build template, but I can't find it.
Also I'm unsure if adding the work item activity will prevent the critical item from being posted. I suspect it will add a new work item in case of failure in addition to the other work item unless I turn off the associate changesets and work items setting, which I don't want. (if tests pass I want the associated work items to change state to passed too)
Related to this matter is the person to whom the bug is assigned.currently this is the NTAuthority account. I'd like to change that to the person who submitted the last changeset used for the build. I Can't find a setting for that either.
If you find the "Create Work Item" step of the Template:
Right click on this and do "Properties" in the Properties window you will see a "CustomFields" that can be edited. Click the "..." elipsis to open the Expression editor:
From there you can adjust the properties.
I needed to make the same change and couldn't find the "Creat Work Item" section either, at first. You have to expand (double-click) the Exception section of "Try to compile project".