Tommie 的个人资料: : Tommie照片日志列表更多 ![]() | 帮助 |
|
|
Another try to install the XML schemaSince I haven't managed to get the installation of the XML schema to work, I've come up with 2 different ways to hopefully solve the problem, until I get some answers from MSDN:
The first try was a failure. I added a "Code Metrics" table in the TfsWarehouse DB:
Note that Build is of datatype int. This is because it seems like all references to a build in other tables are using the __ID column of build (not Build Artifact Moniker as I've incorrectly suggested in this post. I think that perhaps Build Artifact Moniker is used in a layer the application developer is not meant to use). The __ID and Build Artifact Moniker value are in most cases the same (except that the data type is different), but not always as this picture shows: I verified this by publishing another test result. Since earlier I had 2 test results in the database, both referencing Build.__ID == 1. So I chose to associate my newly created test results with Build having __ID == 1 (Build Artifact Moniker == 7, as you can see above). The name of the Build was XjobBuild_20071203.3. And sure, the column "Build" in the table Test Result gives the value of 1 (i.e. it really is the Build.__ID that is used - not Build Artifact Moniker). Then I added a foreign key referencing the Build table (supposed to represent the <DimensionUse> property):
So the foreign key depicts a mapping between TfsWarehouse.Code Metrics.Build and Build.__ID. Next step was to add our XML into the warehouseschema.xml. I added it as the first fact encountered in the <Facts>....</Facts> property. Went back to http://localhost:8080/Warehouse/v1.0/warehousecontroller.asmx, chose Run, waits for a while and then checks that I got my cube and perspective in Microsoft Excel. The result: Nothing had changed. Tried to run SetupWarehouse again:
Goes back to the URL mentioned above, chose Run again, checks in Excel - Nothing. The Code Metrics table is still in the TfsWarehouse database, the olap cube has probably been rebuilt successfully since I haven't got any error messages, and my Fact entry in warehouseschema.xml is intact. But still nothing whatsoever about code metrics in the cube! I have although encountered a strange thing: If you feed SetupWarehouse with an incorrect xml file (e.g. wrong file name, referencing a file that does not exist), it still says that the warehouse updated successfully:
So perhaps my value passed to the -c parameter has been wrong all the time? Probably not because now my perspectives and cubes are gone - again. I think I would have noticed that before... Anyway, executing Run (from internet explorer) restores the perspectives and the cube. Even if you take away some parameters like -rebuild and -o, it still "updates successfully" if given a wrong name of the xml file:
Nothing, nothing, NOTHING seems to make the Code Metrics Fact table appear in the cube. WHY THE HELL NOT? Please tell me I'm stupid and I'm missing something obvious. Please! 引用通告此日志的引用通告 URL 是: http://tomfury.spaces.live.com/blog/cns!F58BF7D0B46F52B9!298.trak 引用此项的网络日志
|
|
|