{ "id": "104777", "key": "TIMOB-11723", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-08-24T19:39:31.000+0000", "created": "2012-11-09T20:11:33.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T20:26:16.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12643", "name": "Anvil", "description": "Anvil" } ], "description": "Repro steps:\r\n\r\n1. Edit the Config.js of anvil - /path to titanium_mobile git repo/anvil/driver/Config.js - to contain:\r\n// Point to a valid mobileSDK path that you want to run anvil tests against\r\nthis.tiSdkDirs = path.resolve(path.sep, \"Users\", \"mgadiya\", \"Library\",\r\n\"Application Support\", \"Titanium\", \"mobilesdk\", \"osx\",\"2.1.3.GA\");;\r\n// This is the custom configSet that we want to run anvil against\r\nthis.customHarnessConfigDirs = ['./anvil/configSet'];\r\n\r\n2. Download the module, unzip and add it to the modules directory which corresponds to the SDK directory you specify in Config.js in step 1\r\n\r\n3. Download the attached Anvil folder with configSet of large testsuite.\r\n\r\n4. Unzip it and run the following command from that directory.\r\nnode /path to titanium_mobile git repo/anvil/driver/driver.js --mode=local --platform=android --command=\"start --config-set=aws --suite=sns\"\r\n\r\n5. Wait for the run to complete\r\n\r\n6. Once Anvil displays the test results, re-run the test by executing:\r\n\r\nnode /path to titanium_mobile git repo/anvil/driver/driver.js --mode=local --platform=android --command=\"start --config-set=aws --suite=sns\"\r\n\r\nand you will receive the follwing error:\r\n\r\n/Users/mgadiya/Desktop/titanium_mobile/master/anvil/driver/localMode.js:54\r\n\t\t\t\twrench.rmdirSyncRecursive(path.join(driverGlobal.logsDir, \"json_results\"),\r\n\t\t\t\t^\r\nReferenceError: wrench is not defined\r\n at module.exports.start (/Users/mgadiya/Desktop/titanium_mobile/master/anvil/driver/localMode.js:54:5)\r\n at Object. (/Users/mgadiya/Desktop/titanium_mobile/master/anvil/driver/driver.js:294:6)\r\n at Module._compile (module.js:449:26)\r\n at Object.Module._extensions..js (module.js:467:10)\r\n at Module.load (module.js:356:32)\r\n at Function.Module._load (module.js:312:12)\r\n at Module.runMain (module.js:492:10)\r\n at process.startup.processNextTick.process._tickCallback (node.js:244:9)", "attachment": [ { "id": "33382", "filename": "anvil.zip", "author": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T20:11:33.000+0000", "size": 92351, "mimeType": "application/zip" }, { "id": "33383", "filename": "ti.aws-commonjs-1.1.2.zip", "author": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T20:11:33.000+0000", "size": 9079638, "mimeType": "application/zip" } ], "flagged": false, "summary": "Anvil throws an error on successive runs ", "creator": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "2.1.3.GA\r\nRunning anvil/driver/driver.js from master branch on titanium_mobile ", "comment": { "comments": [ { "id": "242629", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Duplicate of TIMOB-11568.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-18T11:10:04.000+0000", "updated": "2013-03-18T11:10:04.000+0000" }, { "id": "394163", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Anvil is dead.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-24T19:39:31.000+0000", "updated": "2016-08-24T19:39:31.000+0000" }, { "id": "413903", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Anvil is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:26:16.000+0000", "updated": "2017-03-20T20:26:16.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }