Is there any way I can read code coverage information using TFS APIs?
I'm more interested in reading class level and method level coverage;
Using CoverageAnalysisManager, we were able to get Assembly level coverage with details on BlocksCovered etc.
Thanks,
Vijaya
See the links below to get started
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.coverage.analysis.coverageinfo.aspx
http://blogs.msdn.com/b/phuene/archive/2009/12/01/programmatic-coverage-analysis-in-visual-studio-2010.aspx
Related
I am new in Karate but know almost all the basics. I want to generate a report for my test cases which will be kept in the folder for history purposes. currently, I am using the HTML report which overrides or updates every time I run my test cases.
If you can recommend me a step-by-step tutorial or a link, or simply give me a hint on how to approach this.
I have tried to use the allure framework and I am struggling to set it up.
Thought it would be the best approach to solve my problem.
Attached is my HTML report I am talking about. Thanks in advance
The JUnit HTML report which you have referred to as an image is designed for easy development, so when working on a test, you re-run and re-fresh the browser.
What we recommend is to use the parallel runner reports. Most of the time, 3rd party frameworks will solve this problem for you - especially if you use them integrated with CI. See this for example.
But finally, Karate will output the industry-standard Cucumber JSON report format, so you can always write a reporting solution yourself. Note that others have had success integrating Allure - so please refer this answer: https://stackoverflow.com/a/54527955/143475
I want to use Xposed to hook the method in WeChat that is responsible for incoming messages. Which method should I hook? Which procedure should I follow to find this method?
It seems you are new to xposed. Start by hooking methods for open source apps. You'll get familiar with android apps code and design. Once you have an idea about xposed code you can start decompiling the apks.
for decompiling you can use apktool. apktool generates a smali code.
I prefer decompiling using online decompilers as it generates java code.
but beware the smali code is accurate while the generated java code is not.
for xposed you can see existing open source xposed modules. That will help you to get familiar with xposed APIs as there are no examples provided by xposed author himself ( correct me if I'm wrong here ).
you can refer my xposed module code here
https://github.com/suraj0208/WhatsappExtensions
Is there a code coverage tool built-in in Bluemix? Say, I am writing Java code and want to get the code coverage being reported. Do I need to use something like SonarCube? Or is there something built in?
There is not such a specific built-in tool in the catalog. You should use something locally for this purpose.
Anyway you might take a look at Devops services offer in the catalog, even though it doesn't fit exactly with your request:
https://console.ng.bluemix.net/catalog/?search=devops
I'm trying to use SpecFlow for a .net project. I'm new to SpecFlow. The Development team are using NUnit, so it would seem that SpecFlow would be a good option in conjunction with Cucumber. However, the Development team have come back say that SpecFlow cannot be used saying they do not have an API/Service that is available to use at the level required. Currently all of their automated tests are through the UI using Test Complete, I am keen to move to API level testing.
Can anyone explain to me why SpecFlow cannot be used, I'm sorry it's a newbie question but no one can answer it, I've asked everyone I can think of, surely the first steps would be to see if we can use SpecFlow with NUnit but perhaps not.
Can anyone give me a guide on my next steps, how can I be sure this isn't an option without righting it off without concern that it's just being blocked?
Thank you
SpecFlow has a unit test generator that generates unit test code for a variety of unit test frameworks. SpecFlow generates NUnit tests in its default configuration. The getting started page on specflow.org explains a quick way to get up and running with SpecFlow and NUnit, http://www.specflow.org/getting-started/.
If the UI is HTTP based, SpecFlow can be used with WebDriver or another browser automation framework to test the UI. This blog post provides an overview of how to get started with SpecFlow, NUnit and WebDriver, http://blogs.lessthandot.com/index.php/enterprisedev/application-lifecycle-management/using-specflow-to/
I am unclear on the API you want to test. If you could provide more information on the specific API and UI you are trying to test, I could possibly provide some code examples or references for you.
Is the API exposed through HTTP?
Is the UI a web, mobile, or desktop
application?
Have you tried to use SpecFlow at all?
SpecFlow doesn't run tests. It simply maps readable language to tests. If their test can be written as a nunit test, then SpecFlow is available to you to use. With no change, here is how it would look.
Scenario: Running 'testname'
Then I execute the test 'TestName'
You would map that to
[Then(#"I execute the test '(.*)'")]
public void ExecuteSpecificTest(string testname)
{
// Using reflection, execute the method listed
}
Obviously you would want to do better than that. You want a given, when, then so you clearly show the setup, action, and then compare expected verses actual result but it isn't necessary. Best practices however is another discussion.
To sum it up, code is code and SpecFlow simply maps to code. You can use WatiN, WebDriver, or anything else to hook into the UI or an API. SpecFlow doesn't care. It simple executes the methods without knowing what's inside.
I am using XStudio- a test management application and it currently contains my testcase resulst(pass/fail). I am planning to dynamically log bug into JIRA using XStudio. Kindly let me know if any plugins are available to do the same or should I write script to log defects. If writing script is a good option, please help me to write the script to log bug and invoke the script from XStudio. Any help would be greatly appreciated.
You could use the Jira JIRA Remote API. You should choose between REST, SOAP, XML-RPC of JSON-RPC according to your Jira version and the desired scripting language.
To do something similar, I've used python and XML-RPC, you can find a very good example here. If you need any help please supply the Jira's version number, which API, and which language.
Good luck!