{"action":"opened","issue":{"url":"https://api.github.com/repos/Seddryck/NBi/issues/401","repository_url":"https://api.github.com/repos/Seddryck/NBi","labels_url":"https://api.github.com/repos/Seddryck/NBi/issues/401/labels{/name}","comments_url":"https://api.github.com/repos/Seddryck/NBi/issues/401/comments","events_url":"https://api.github.com/repos/Seddryck/NBi/issues/401/events","html_url":"https://github.com/Seddryck/NBi/issues/401","id":348855711,"node_id":"MDU6SXNzdWUzNDg4NTU3MTE=","number":401,"title":"genbil adding attributes \"column-index\" and \"type\" to <expression> tag","user":{"login":"allihandra","id":11861668,"node_id":"MDQ6VXNlcjExODYxNjY4","avatar_url":"https://avatars1.githubusercontent.com/u/11861668?v=4","gravatar_id":"","url":"https://api.github.com/users/allihandra","html_url":"https://github.com/allihandra","followers_url":"https://api.github.com/users/allihandra/followers","following_url":"https://api.github.com/users/allihandra/following{/other_user}","gists_url":"https://api.github.com/users/allihandra/gists{/gist_id}","starred_url":"https://api.github.com/users/allihandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allihandra/subscriptions","organizations_url":"https://api.github.com/users/allihandra/orgs","repos_url":"https://api.github.com/users/allihandra/repos","events_url":"https://api.github.com/users/allihandra/events{/privacy}","received_events_url":"https://api.github.com/users/allihandra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T19:13:11Z","updated_at":"2018-08-08T19:13:11Z","closed_at":null,"author_association":"NONE","body":"I have a template that has an expression tag, when the template is populated it now includes column-index and type attributes which are not part of the .xsd and cause tests suite to NOT open. using 1.18\r\nI was using your sample code, can you see any issue with how I did this?\r\ntemplate:\r\n```\r\n<test name=\"$trunc(alias); separator=\" and \"$ to calculate $last(alias)$\">\r\n    <system-under-test>\r\n      <resultSet>\r\n        <query>\r\n          <![CDATA[\r\n          select\r\n          {\r\n         $measure; separator=\", \r\n\"$\r\n          } on 0,\r\n          {\r\n          [Dim Client].[ClientState].members\r\n          } on 1\r\n          from\r\n          [$perspective$]\r\n          ]]>\r\n        </query>\r\n      </resultSet>\r\n    </system-under-test>\r\n    <assert>\r\n\r\n <all-rows>\r\n        $alias:{ x | <alias column-index=\"$i$\">$x$</alias>}$\r\n        <expression name=\"calculate\">\r\n           Round($expression$, $round$) = Round($last(alias)$, $round$)\r\n        </expression>\r\n        <predicate operand=\"calculate\" type=\"boolean\">\r\n          <true />\r\n        </predicate>\r\n      </all-rows>\r\n    </assert>\r\n  </test>\r\n``` \r\n\r\nOutput with settings removed:\r\n```<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<testSuite xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://NBi/TestSuite\">\r\n   <test name=\"charge and budget to calculate variance\">\r\n    <system-under-test>\r\n      <resultSet>\r\n        <query><![CDATA[\r\n          select\r\n          {\r\n         [Measures].[Charge Hours], \r\n         [Measures].[BudgetHours], \r\n         [Measures].[Budget Variance]\r\n          } on 0,\r\n          {\r\n          [Dim Client].[ClientState].members\r\n          } on 1\r\n          from\r\n          [CurrentSummary]\r\n          ]]></query>\r\n      </resultSet>\r\n    </system-under-test>\r\n    <assert>\r\n      <all-rows>\r\n        <expression name=\"calculate\" column-index=\"0\" type=\"text\">\r\n           Round(charge-budget, 2) = Round(variance, 2)\r\n        </expression>\r\n        <alias column-index=\"1\">charge</alias>\r\n        <alias column-index=\"2\">budget</alias>\r\n        <alias column-index=\"3\">variance</alias>\r\n        <predicate operand=\"calculate\" type=\"boolean\">\r\n          <true />\r\n        </predicate>\r\n      </all-rows>\r\n    </assert>\r\n  </test>\r\n</testSuite>\r\n```\r\n\r\nIn case the genbiL steps have caused the issue I am including for reference:\r\n\r\n```\r\ncase scope 'calcs';\r\ncase load file '..\\Parameters\\calculations.csv';\r\ncase scope 'env';\r\ncase load file '..\\Configurations\\CUR\\schema.csv';\r\ncase scope 'cur';\r\ncase cross 'calcs' with 'env' on 'schema';\r\n\r\ncase split column 'alias' with value ',';\r\ncase split column 'measure' with value ',';\r\ntemplate load file '..\\TestProject\\DATA\\MEASURES\\METADATA\\_templates\\calcmember-validatexpression.nbitt';\r\nsuite generate;\r\nsetting include file '..\\Configurations\\CUR\\settings.nbisettings';\r\nsuite save '..\\TestProject\\DATA\\MEASURES\\METADATA\\CUR\\calcmember-validatexpression.nbits';\r\n```"}}
{"actor":{"display_login":"allihandra"}}