CA Rally - Import Test case - rally

I could able to import test cases to rally from Excel with the below mentioned columns in Excel:
Project,Work Product,Name,Description,Method,Type,Owner
Tagging is one way teams can identify work items as part of feature initiatives or projects that may span multiple timeboxes.
How to add this Tag attribute in Excel sheet and import the test case to Rally?

Use the CA Agile Central Add-In for Excel for importing and exporting. It supports tags too. Here's the link

From my knowledge this is not supported with a direct import.. The method above with the plugin is ok but only if you are on Windows (bahhh) as there is no Linux/OSx version.
This has just gone or is continuing to go through a major rework as demo'd to me last month by the AC Product Owner of this feature.. I'll raise the question and get back to you...
I know you can now add the steps of a test case within the same import and link them, but that doesn't help;)
Here's a link to the new functionality

Related

Has anyone come across issue[]?

issue[] in UiPath.
So I downloaded an extension / package from UiPath GO! named as "Jira Integrating Software". This Packages comes with several APIs to access Jira tickets.
I was working with one of these APIs called "Search by JQL". JQL is Jira Query Language comes in handy for Advance searching. The output type of this "Search by JQL" activity is issues[].
Now when I am Iterating this array it gives me an output of "UiPath.JiraSoftware.Models.Issue"
You should use a For Each activity iterating the ResultArray Array you got from the Search JQL.
The following is just pseudo code! But it should work like this. Maybe the name of the property is not IssueId. That was not completely told in the document. But this you can when you inspect it by using the debug mode:
You should also have a look on the official Jira UiPath page. This resource contains all of the concepts you will need.

Workflow based on component in trac

How is it possible to edit trac so a new ticket with component X follows workflow X and component Y follows workflow Y
Trac doesn't give you a way to do that at the moment. It assumes that your project has a single workflow.
There are some plugins that will give you additional workflow capabilities, however. The AdvancedTicketWorkflow Plugin gives you some advanced commands to use when designing your workflow. See the documentation for the "triage" command for an example of how to route two types of tickets through two slightly different workflows.
The TypedTicketWorkflow Plugin also adds additional workflow capabilities, by allowing you to create actions that are only applicable to certain ticket types.
There are a number of additional workflow-related plugins that you might want to test out. Some of them look like they haven't been updated in a while, though, so be aware that you may run into compatibility issues.

Importing tasks to Rally

Is there a way to import tasks into Rally?
I know how to import user stories and defects from a csv file, and I see how to export tasks, but I can't find anything anywhere about importing tasks IN to Rally.
Thanks.
i was able to import tasks by using the Rally Excel add-in. the field must be identical to the schema and there are a few required fields. Note the Work Product field is how it knows which user story to import the tasks under (which is a bit odd -- not sure what they don't just use the user story #.). And Work Product is equivalent to the User Story Name
https://prod.help.rallydev.com/rally-add-excel
Unfortunately you can't do this through the Rally UI. It is a very popular feature request. I'd recommend registering your support for this feature by voting up this existing Idea out on Rally Ideas:
http://ideas.rallydev.com/ideas/D336
Alternatively, some customers have opted to write webservices scripts using Rally's developer toolkits/APIs:
http://developer.rallydev.com/help/rest-apis
To facilitate this functionality.
Yes, there is a way to do this without the Excel add-in.
Steps to import tasks:
In Rally, Click on ‘Track’ on the header and click ‘Tasks’ from the dropdown
Then click on ‘Actions’ on the right side and click ‘Import Tasks…’ from the dropdown
Browse to the file and click import
Remember to not put any commas in your Comma Separated Values (.csv) file.

Android, Robotium - How to work with localized builds?

I'm using Robotium for some test automation for an Android application. It's great, but the maintenance is huge.
My application is localized into 20 languages, I'm compiling my application string resources into my test APK (that contains the logic for running my automated tests) and using the strings to find menu items etc. to click at run time. This is in line with an example I found on the Robotium project page on Google Code.
For example,
solo.clickOnText(res.getString(R.string.settings_menu));
The problem I'm having is that the strings may change daily in early builds of my product.
Is there any way I can use the string ID's as opposed to the actual strings in order to click on items? These would be unique across all languages, and I wouldn't have the high maintenance costs I currently have.
TIA.
You can use the resource ids of the views that you want to interact with. An example is:
Button button = (Button) solo.getView(R.id.x);
solo.clickOnView(button);
You should be able to use
String myLocalizedString = getActivity().getResources().getString(R.string.settings_menu);
solo.clickOnText(myLocalizedString);
No matter what you change your language to it should come up with the correct string. I am assuming you are using resource qualifiers.
res
values
strings.xml
values-fr
strings.xml
Use resource id from the test tested project(if you are testing APK only, import the R.java to your testing project).
Then use scripts like below:
View view = solo.getCurrentActivity().findViewById(R.id.resourceId);
solo.clickOnView(view);

Need your ideas to automate

In my project we have a web based tool where it collects all the exceptions that occur in log. The list of exceptions will be displayed in table and a icon will be displayed in a column to get the stack trace. Some one needs to check all those exceptions and we need to assign to different teams based on the keywords.
Eg : If the stacktrace contains "DB Connection error" it has to be assigned to DB team, if it contains code error like "classcast exception" in particular file then it has to be assigned to individual owning the module. Currently some one has to open each n every row in the table displayed and open the stack trace and do Ctrl + F and if any of those keywords are found assign it to respective team.
We don't have any access to the tool's database and it's web based. I need some good ideas to automate it. Please suggest me with which technology and idea to automate it.
Sounds like selenium + programming language of your choice is a good fit (even without a selenium).
You need to:
download source code of the page containing exceptions table.
Use any of these: wget, curl, selenium, urllib for python, etc.
put it into variable and extract exceptions list in convenient to you format.
Use any xpath-powered tool, like selenium, lxml for python, etc.
do your thing with the extracted exceptions list: search for keywords, assign tickets, etc.
Use programming language of your choice.
Definitely you can achieve this using selenium.
Following are the steps to follow.
Supply date criteria with type command to the boxes text boxes element.
click search button.
store the required text in variable using storeValue(locator, variableName).
click on image link if you are able to keep track of popup window else you have to use
$second=$sel->getAttribute("//html/body/.../a#href"); and now your $second has link address $sel->openWindow($second,"MyWindow2"); now select that new window $sel->selectWindow("MyWindow2"); and do operation of storing required data from the popup.
Now agian for selection of previous window use `$sel->selectWindow("null"); // hear $sel is object of selenium (i.e. $this).
Select your required option using select(selectLocator, optionLocator).
Use selenium RC for above steps so that you have more manipulation with the data stored and as per requirement operations.
In above steps syntax are of PHPUnit.
Please try the steps may help you.
Regards.