I want change a FAIL case to PASS in my report.html, but I don't know how to achieve it, could anyone know how to change or re-generate a report.html?
Related
With symfony console commands you can prefix/group each one by putting in the setName("group:command"), and this is great.
myown
myown:cool
myown:foo
myown:bar
But the problem is that some external dependencies dont use this format. Ex: Phinx Migrations.
Since I'm importing an dependency that has a console command called migrate, I dont want for it to show without prefix/group. Not just because I might have another command called migrate or just for readability. I don't event know if we have 2 with same command name which one will show (need to check).
My question is: Is there any away for me to force a group commands from an external depencency to be inside an prefix/group?
You can achieve that, I wouldn't recommend but that would be the approach:
Create a compiler Pass which removes the definitions of the Commands you don't like
Register again all those commands while setting the names you like
If you need information on compiler passes:
https://symfony.com/doc/current/components/dependency_injection/compilation.html#components-di-compiler-pass
Maybe there's an easier way which I'm not aware, but for now that's my answer to you, I can't post all the code because that would be a lot of code and if you do it maybe you can update with the solution.
Good luck
I want to run flowtype on my existing project(Against a set of JS files), and I want to see the results in one place/file separately. Is there a way to do this?
Thanks advance!
Just run flow status. You need to follow the setup instructions first of course. In particular, make sure you have a .flowconfig file at the root of your project (it can be empty), and make sure that you have // #flow at the beginning of the files you want checked.
just was wondering how could I update an app actually in use, so could not unistall it, so without losing data. Whats the best way? There is an automated feature for this?
Thanks
At the moment there is no automatic feature for this. This is something that can never be fully automated, because an app can be changed in so many ways 2sxc could never automatically figure out how to merge.
I'll try to write a guide some time, but in general there are three quick strategies: if only the views/templates changed, just replace them. If way more changed you could export-import the content-items from "old" to "new" - or you could export/import the schemas from "new" to "old"
In Quality Center, I want to move a test run with Passed/Failed status from one test set to another, copying its run history as well.
Please help, how can i do that.
You cannot copy single test case from one test set to another , though you can copy the entire test set and paste it and then delete the unwanted test cases. That seems to be the best possible solution as far as i know.
The ALM Client will not let you move a test run from one test instance to another, nor a test instance to another test set.
You would need to copy the details of the run into the new set either manually, or basically do the same thing through the OTAClient API.
It is highly recommended not to update the database directly. However, we had the same issue and ONLY IF YOU KNOW THE DATA MODEL AND KNOW EXACTLY what you are doing, you can change the ID of the TC_TESTCYCL_ID in the RUN table to the new one to move it. It has been a while since I did this so you need to check the other tables and make sure this is the only ID that you need to change. If you really want to do this I can look into it further.
Let's say that I want all my programs under a flex project to go to a new url, with the name of the program's html and swf as variables. Now, normally, it's going to hardcode Foo.mxml to a URL of:
file:///local/wherever/project/bin-debug/Foo.html
But I want it to go to:
http://localhost/elsewhere/?a=Foo.html?b=Foo.swf
Now, I can do this in a hardcoded way by editing Foo.mxml to be the above, but then I have to do the same for Bar.mxml and Baz.mxml. I really want to be able to do (something like) this:
http://localhost/elsewhere/?a=${html}&b=${swf}
And have it fill in the result for me. Then either set that as "the default" somehow, or at least make just one run-debug-setting and reuse it as needed. Any thoughts?
Update:
To clarify, the point isn't specifically to pass in "a" and "b" - yes I can use flash variables or other things. The issue is that I want my own "default" setting that takes the name of the project into account, because the default 'file:///' URL is not appropriate.
Also, yes, I'm using Flex Builder 4.
Are you using Flash Builder? The Command line tools? Or some other IDE?
In Flash Builder, you need to create a 'run' profile for each main application file. I'm not sure how to apply Macros / Variables in that situation. It is a one to one relationship between application and the run profile.
You can use some variables in the HTML template files, though, but off the top of my head I don't i know the complete list of the ones available [and couldn't find a list in Adobe documentation].
Pass them in as Flash vars.