I'd like to review the contents of all the debug logs on all the devices I use in my fastlane snapshot ui test?
I'm looking for the debug messages that would also be generated using NSLog etc.
I found this output_simulator_logs flag in the documentation, but it doesn't seem to work. I also set namespace_log_files but this just seems to be for the build log.
Although I'm quite happy to achieve this using another fastlane tool or maybe a different tool?
If you pass in result_bundle: true should should get some test_result bundles. In those bundles, you'll get all the logs that you're looking for. Not that *.xcactivitylog files are actually gzip'd text files.
Related
I am trying to modify some APIs in MongooseIM and I want to see some logs. I tried adding lager-logging using MongooseIM, but the APIs stopped working after that.
If you have source code, you can add debug statement into it and compile it to beam file then replace the old file. The debug statement is to write some log into log file. I have used this method solving the problem in rabbitmq before.
I am generating reports using protractor-multiple-cucumber-html-reporter-plugin in my local system and it is perfectly working.But when i am running this protractor script using Jenkins, I am not able to generate same report there using HTML Publisher plugin.The generated report looks like a broken one.Its not displaying the images and not navigating when clicking on links.I am using Chrome version of 75, Java with jdk1.8.0_201, Jenkins of version 2.263.4 and Html plugin of version 1.25.I have tried below code, but none of them worked for me.
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "*");
i am able to disabled the protection.But still report is not fully loading for me.
The actual report is look like
But in Jenkins, after disabling the protection,it look like
Can anyone help me? Thanks in Advance.
Try to install this plugin https://chrome.google.com/webstore/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden?hl=en
Make sure to enable it after you're on the report page, and then reload the page. If this works, I'll explain what happened and what else you can do to permanently fix it
We need to add all files(css,js etc) while configuring the HTML publisher plugin, as like below
or else we need to keep the 'include files' field as empty. so that it will take all associate files. And then we need to disable the protection by
this link
so that we will get actual report.
I am running Fitnesse on several dispathers and then copy Fitnesse history and logs from all dispatchers to a separate machine. Some other project members need access to test results on this machine but I don't want them to be able to click Test or Suite there. Is it somehow possible to disable Test and Suite buttons?
I would be glad for any options: either somehow configure it in Fitnesse, or get a patched fitnesse.jar, or any other options.
On the main Fitnesse site (http://fitnesse.org/StayInformed), there is the following note: "Note, the Test and Suite buttons on this site have been disabled because search engines tend to invoke them and put my server under stress. This site is actually created with FitNesse.". So I need something like that, if possible.
Is it possible? Not sure I can find a corresponding place in source code to patch and re-build it. My hope is whether someone already did it or find it easy to help. I raised an issue in GitHub where Fitnesse source code is located but I didn't get any feedback yet.
Thank you!
It is indeed possible, that is indeed what is done for fitnesse.org.
I'm not 100% sure how its done but I suspect it is done by disabling 'responders', see http://fitnesse.org/FitNesse.UserGuide.AdministeringFitNesse.ConfigurationFile.
In that page a description is given to disable creating new pages:
Responders=addChild:fitnesse.responders.DisabledResponder,new:org.fitnesse.responders.DisabledResponder
You can probably also use this to disable SuiteResponder and TestResponder, by using:
Responders=suite:fitnesse.responders.DisabledResponder,test:org.fitnesse.responders.DisabledResponder
The full list of responders is in fitnesse.responders.ResponderFactory
On a side note: why do need a full FitNesse installation to show test results? I recommend you look into generating tests results in html format, and just publish that html somewhere. I usually use the jUnit runner to run the tests on a build server (it also creates html output) and then publish the html files generated as build artefact which people can open/view.
Sample, from FitNesse project, generating html in build/fitnesse-results:
import org.junit.runner.RunWith;
#RunWith(FitNesseRunner.class)
#FitNesseRunner.Suite("FitNesse.SuiteAcceptanceTests.SuiteSlimTests.TestScriptTable")
#FitNesseRunner.FitnesseDir(".")
#FitNesseRunner.OutputDir("./build/fitnesse-results")
public class FitNesseRunnerTest {
}
I have set deployment properties with spring.cloud.deployer.kubernetes.limits.memory=300Mi. But after the stream was deployed, I check the memory limit with docker stats, It still returned xxx/640Mi.
I looked into the source code, and found that the code may print some debug log. But even if I set LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_CLOUD_DEPLOYER_SPI_KUBERNETES=DEBUG
, the debug log still wouldn't show up.
I have no idea what's going wrong here.
I ended up with set deployment properties with "app.xxx.spring.cloud.deployer.kubernetes.limits.memory=300Mi", and it finally succeeded. It's likely that I got wrong with the way passing deployment properties.
Apparently I'm terrible at Googling. All I want to do is have the ability to read my web service URL from a config file in my PhoneGap app. Also, be able to modify that value during the build process. Is this named alot different in Xcode? I think I need to save this value in the plist file. If that's the case, then I can just set a user-setting in my build configuration stuff to have it change depending on which build type, Dev/Release.
If that's true, how do I access this from PhoneGap?
I'm guessing this question will get closed, but where else do I go for help...
plist file for cordova project already depreciate since v2.2. Cordova v2.3 start using config.xml.
Target > Edit Scheme
You could probably use hooks to accomplish everything that you are trying to do without changing around the config.xml file, but I'm not entirely sure this is supported with Phonegap (it is with Cordova.)
Check out the official help page to use the /hooks/ folder to modify anything during the build process: https://github.com/apache/cordova-cli/blob/master/templates/hooks-README.md
This blog post also seems pretty useful: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/ it talks about changing things based on the environment and I'm sure it'd be easy to extend that to changing based on dev/release.
You could store the link to your web service probably as a config variable. I'm trying to figure out how you can add a config variable and will report back if I get it. In the mean time you could probably just have something like a server.txt file that you change with hooks.