- Where Developers Learn, Share, & Build Careers


I am trying to use the following code to get a pie chart for the latest Teneralt from a particular testet .

  pieconfig = {type: 'TestCaseResult', attribute: 'Verdict', query: rally.sdk.util.Query.and (['TestSet =' '+ testetDropdown.getValue () + '' ',' Date & lt; "2012-11-01" '])}; Var piechart = new rally.sdk.ui.PieChart (pyphonng, rallydesource); PieChart.display ("pieChartDiv");   

In this code I have kept today's date manually, but I want to make this query as a normal type which should draw the latest testtrack from a specific testet. Any signals ...? Thank you.

Rally has a good datetime format that formats for whatever you want . Reference can be used here:.

If you always want the current day in the year-month format, you can:

  var dateQuery = 'date & lt; '+ Rally.sdk.util.DateTime.format (new date), "YYA-MM-DD");   

Then your query will look something like this:

  query: rally.sdk.util.Query.and (['TestSet =' '+ testetDropdown Edit: Now I see that what you are saying by grabbing the latest TestCaseResult is actually the conditional date in your query. is not needed. You need to add some options to your pie config.  
  var pieconfig = {type: 'TestCaseResult', attribute: 'Verdict', query: '(test set = "+ TestetDropdown.getValue (+)"'), order: 'CreationDate ', Pages: 1};   

This creation will be sorted in descending order by date, which means that the most recently created TestCaseResult will be at the top, establishing a pageis from 1 means that you will always find the most recent The results will be found.

This also resolves the issue of not being the result of the test of the present day. The last question will be to get all the test results from 12:00 AM today. Therefore the result of any test case made in the present day will not be included.

Let me know that she is not working for you. I'm very new to the rally SDK1 query system.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -