I'm trying to sync Defects from Rally to Bugs in JIRA (syncing new Bugs from JIRA to Defects in Rally is working fine), but I was getting the following error due to Security Level in JIRA being a required field:
[2012-08-16 08:24:52 Z] ERROR : JiraConnection.rescue in attempt_create - Trying to create issue: 'Testing Security Level' resulted in exception SOAP::FaultError
[2012-08-16 08:24:52 Z] WARN : JiraConnection.initialize - com.atlassian.jira.rpc.exception.RemoteValidationException: {security=Security Level is required.} : []
I created a custom field in Rally with the following properties:
Name: Security Level
Display Name: Security Level
Type: Drop Down List
Drop Down list Values: None, Reporter and Company, Vendor and Company, Company Only
Hidden: Unchecked
Occurrences: 1
Required: Unchecked
and added the following to my XML configuration:
<FieldMapping>
...
<Field><Rally>Security Level</Rally><Other>Security Level</Other></Field>
...
</FieldMapping>
<OtherFieldHandlers>
...
<OtherEnumFieldHandler>
<FieldName>Security Level</FieldName>
<Mappings>
<Field><Rally>None</Rally><Other>-1</Other></Field>
<Field><Rally>Reporter and Company</Rally><Other>10050</Other></Field>
<Field><Rally>Vendor and Company</Rally><Other>10052</Other></Field>
<Field><Rally>Company Only</Rally><Other>10031</Other></Field>
</Mappings>
</OtherEnumFieldHandler>
...
</OtherFieldHandlers>
but now it's failing with:
[2012-08-16 09:45:32 Z] ERROR : Connector.block in validate - FieldMapping: Rally field "Security Level" not found
[2012-08-16 09:45:32 Z] ERROR : ConnectorRunner.rescue in run_services - Unexpected exception occurred
[2012-08-16 09:45:32 Z] ERROR : ConnectorRunner.exception - Message Invalid Configuration
I've tried different combinations of "Security Level", "securityLevel", etc. for the field name in Rally and updated the XML file accordingly when I've tried different combinations, but I always get the same "not found" error.
Am I missing something obvious here? Is there a more standard way of mapping Security Level?
Cheers,
Andrew.
Currently the Rally JIRA Connector cannot sync issues from Rally which require a Security Level in JIRA because the connector only uses the createIssue call and not the createIssueWithSecurityLevel call.
for the field names in Rally, the wsapi strips out spaces and underscores - try just SecurityLevel in the field mapping and in the field handler.
hope that helps
Related
I have created a link between ALM and JIRA to sync defects from ALM to JIRA. The integrity check passed and after enabling and trying to sync, am getting the following error,
05/22/2017,02:27:31,654 INFO (Create.From1To2.Source-1) Synchronize: JIRA: Creating new issue
05/22/2017,02:27:32,874 INFO (Create.From1To2.Source-1) Synchronize: JIRA: refreshing the issue id:26906
05/22/2017,02:27:32,925 INFO (Create.From1To2.Source-1) Synchronize: JIRA: Updating issue id:26906
05/22/2017,02:27:33,494 ERROR (Create.From1To2.Source-1) Create: Fatal exception caught,operation terminated. Cause: create: fatal error update: fatal error {"errorMessages":["one of 'fields' or 'update' required"],"errors":{}}
05/22/2017,02:27:33,499 INFO (Disconnection.Adapter1) DisconnectAdapter: Disconnecting adapter HPE-ALM
05/22/2017,02:27:33,499 INFO (Disconnection.Adapter1) DisconnectAdapter: HPE-ALM: disconnect() called
05/22/2017,02:27:33,502 INFO (Disconnection.Adapter1) DisconnectAdapter: HPE-ALM: Call to disconnect
05/22/2017,02:27:34,550 INFO (Disconnection.Adapter1) DisconnectAdapter: HPE-ALM: Call to logout
Not sure what this really means as am relatively new to both products. Could anyone help on this please?
It looks like the issue with 26906 ID have some required fields.
You can figure out what this issue is via this URL: http://your-jira-server/rest/api/2/issue/26906. If you know the project of this issue and know which fields are required, this could already help.
If this information won't help you to figure out the actual reason of error, you can check which fields are actually required using this URL: http://your-jira-server/rest/api/2/issue/26906/editmeta. This should return you a JSON object, containing metadata about fields of given issue. Search for "required": true (or use jq utility) and figure out which fields are missing.
If the import failing during issue creation, you can try another URL: http://your-jira-server/rest/api/2/issue/createmeta?projectKeys=~PROJECT_KEY~&issuetypeNames=~ISSUE_TYPE_NAME~&expand=projects.issuetypes.fields which will give you JSON metadata for creating new issue. Using this information, you can check whether some of the fields are missing in the source data.
When i sync the HP ALM defects with TFS im getting this issue. im trying too sync the HP ALM Status field with TFS State field .
Execution log file
Update: threw an exception,skipping this entity and moving to the next, exception:update: general error AutomationException: AdapterException: Error in method TfsComEntityManager.UpdateWorkItemState , Unknown exception occurred. Cannot update State field with value:Resolved .
NEED HELP !!
Quickfixj is rejecting the following logon message:
8=FIXT.1.1|9=163|35=A|34=77086|1128=9|49=XXxVENUExXX|56=XXxUSxXX|52=20140704-11:24:22.308|108=4|98=0|1137=9|789=78069|58=RFA:f718fdb8-2ed3-4e0b-965f-4305188d06f9|1409=0|1407=100|10=013|
The actual log entry for it is:
20140704-11:24:22.316 ERROR [QFJ Message Processor] quickfixj.errorEvent - FIXT.1.1:XXxUSxXX->XXxVENUExXX: Rejecting invalid message: quickfix.FieldException: Tag appears more than once, field=1407: 8=FIXT.1.1^A9=184^A35=A^A34=77086^A49=XXxVENUExXX^A52=20140704-11:24:22.308^A56=XXxUSxXX^A1128=9^A58=RFA:f718fdb8-2ed3-4e0b-965f-4305188d06f9^A98=0^A108=4^A553=USRC^A554=test234^A789=7806 9^A1137=9^A1407=100^A1409=0^A10=093^A
Tag 1407 doesn't appear more than once though. We're using Quickfixj 1.5.3. With a FIX Version 5.0 SP2 - EP100 data dictionary. I can't see any issues with the data dictionary entries. The Logon message fields are all flat (except for the optional MsgTypeGrp which is not being used). Have tried with ValidateFieldsOutOfOrder as both Y and N. Config entries are:
[DEFAULT]
ConnectionType=initiator
HeartBtInt=4
FileStorePath=/dir/storeLoc
FileLogPath=/dir/logLoc
StartDay=sun
StartTime=09:55:00
EndDay=sun
EndTime=09:45:00
UseDataDictionary=Y
AppDataDictionary=/dir/dicLoc/QuickFIX_EP100.xml
TransportDataDictionary=/dir/dicLoc/QuickFIX_EP100.xml
ValidateFieldsOutOfOrder=N
EnableNextExpectedMsgSeqNum=Y
# Only the SP2 version supported
DefaultApplVerID=9
DefaultApplExtID=100
BeginString=FIXT.1.1
TargetCompID=XXxVENUExXX
TargetSubID=XXxSUBxXX
# Endpoint
SocketConnectHost=xxx.xxx.xxx.xxx
SocketConnectPort=XXXXX
[SESSION]
SenderCompID=XXxUSxXX
SenderLocationID=XXxLocxXX
Anyone have any ideas what could cause this. It couldn't be because there is '1407' in today's date?
i'm following the tutorial Creating a Basic CMS but after configurate the CMF RoutingBundle like it's shown in Enable the Dynamic Router i got the following error when i try to load the fixture data
PHP Catchable fatal error: Argument 2 passed to Doctrine\Bundle\PHPCRBundle\Initializer\GenericInitializer::__construct() must be of the type array, none given
here is my config.yml
cmf_routing:
chain:
routers_by_id:
cmf_routing.dynamic_router: 20
router.default: 100
dynamic:
enabled: true
persistence:
phpcr:
route_basepath: /cms/routes
you seem to have gotten a version mixup. you need either the 1.1.* family of phpcr-odm and phpcr-bundle with the routing-bundle 1.2.* or phpcr at 1.0.* and routing at 1.1.*
did you do any composer tricks or are the dependencies allowing this incompatible combination?
I'm using Gallio/MbUnit framework for my web testing, and the tests are kicked off from Jenkins. I've installed the Gallio/MbUnit plugin and it's publishing the xml report. I'm trying to find a way to display test log or console messages in the "Test Result" section so the team can easily read failures instead of digging into the "Console Output" for any failed test run.
When I run these Gallio/MbUnit tests from my local machine using Icarus everything is pretty nicely formatted, but not so much with Jenkins. I'd like to keep using it and improve how we display the errors. Suggestions?
For a failed test:
Failed
...MainMenuTests.AcctClaimsItems
Failing for the past 4 builds (Since Failed#128 )
Took 47 sec.
add description
Error Message
Expected value to be false.Actual Value : d:\Jenkins\jobs\...\workspace\WebTesting\Base\Helpers.cs:line 90d:\Jenkins\jobs\...\workspace\WebTesting\TigerEye\Tests\MainMenuTests.cs:line 329true
Stacktrace
at WebTesting.Base.Helpers.Click(IWebDriver driver, IWebElement element) in
From the raw console output:
Start time: 4:21 PM
Initializing the runtime and loading plugins.
Verifying test files.
Initializing the test runner.
Running the tests.
[failed] Test WebTesting/MainMenuTests/AcctClaimsItems
Expected value to be false.
Found System.Web Exception after click to url
.../Accounting/FETReport.aspx
Actual Value : true
at WebTesting.Base.Click(IWebDriver driver, IWebElement element) in d:\Jenkins\jobs\...\workspace\WebTesting\Base\StaticHelpers.cs:line 90 at WebTesting...\Tests.MainMenuTests.AcctClaimsItems() in d:\Jenkins\jobs\...\workspace\WebTesting\TigerEye\Tests\MainMenuTests.cs:line 329
Code:
if (driver.PageSource.Contains("System.Web - Exception"))
{
TestLog.Write("Found exception on page {0}", driver.Url);
TestLog.Write(driver.PageSource.ToString());
Console.Write("Found exception on page {0}", driver.Url);
Console.Write(driver.PageSource.ToString());
Assert.IsFalse(driver.PageSource.Contains("System.Web - Exception"), "Found System.Web Exception after click to url {0}",driver.Url);
}
There is a general console parsing plugin you can use to add a post build step https://wiki.jenkins-ci.org/display/JENKINS/Log+Parser+Plugin