I have a PHPUnit test suite ..
on my dual core laptop it takes 7 minutes to finish executing.. using a vagrant box (virtualbox provider)
~/project/module/ModuleName/tests:$ phpunit
PHPUnit 3.7.37 by Sebastian Bergmann.
Configuration read from ~/project/module/ModuleName/tests/phpunit.xml.dist
..F..FFF..FFFFFF..FFFFF...FFFFFFFFF
Time: 6.82 minutes, Memory: 6.00Mb
Yet, on my virtual machine guest image running Ubuntu 14.04 LTS .. it's taking only a fraction of that. Anyone have thoughts as to why? The only difference with the guest's execution is it's via an ant script and without Vagrant
phpunit:
[exec] PHPUnit 3.7.37 by Sebastian Bergmann.
[exec]
[exec] Configuration read from <~/tests/phpunit.xml.dist>
[exec]
[exec] .. [41;37mF [0m.. [41;37mF [0m [41;37mF [0m [41;37mF [0m.. [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m.. [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m... [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m
[exec]
[exec] Time: 760 ms, Memory: 6.00Mb
[exec]
[exec] There were 24 failures:
[exec]
Since you are storing the files you are using on a share between your Vagrant host and the VM, the reason is probably exactly that. The standard way of mounting directories on the host is by using vboxfs which does not have read caching.
Since this is not going to be changed soon (as it seems) you're better of using NFS by setting the type of the shared folder to "nfs":
Vagrant.configure("2") do |config|
# ...
config.vm.synced_folder ".", "/vagrant", type: "nfs"
end
Note however that this only works on UNIX hosts such as Linux and Mac OS X. But since the problem does not exist on Windows, this should not be a problem.
Related
When trying to upload my iOS app to the app store I see this error with iTMSTransporter. This occurs when using xcrun altool or fastlane pilot builds :
2022-04-22T01:20:31.9952870Z An exception has occurred: null
2022-04-22T01:20:32.0055430Z [0m 2022-04-22T01:20:32.1260390Z
[01:20:32]: [33m[iTMSTransporter] at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) 2022-04-22T01:20:32.1360210Z [0m 2022-04-22T01:20:32.1463160Z
[01:20:32]: [33m[iTMSTransporter] at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source) 2022-04-22T01:20:32.1563930Z [0m 2022-04-22T01:20:32.1596110Z
[01:20:32]: [33m[iTMSTransporter] at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source) 2022-04-22T01:20:32.1660320Z [0m 2022-04-22T01:20:32.1725320Z
[01:20:32]: [33m[iTMSTransporter] at
java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-04-22T01:20:32.1770950Z [0m 2022-04-22T01:20:32.1804250Z
[01:20:32]: [33m[iTMSTransporter] at
com.apple.transporter.launcher.Application.start(Application.java:450)
2022-04-22T01:20:32.1840080Z [0m 2022-04-22T01:20:32.1884420Z
[01:20:32]: [33m[iTMSTransporter] at
com.apple.transporter.launcher.Application.main(Application.java:947)
2022-04-22T01:20:32.1987130Z [0m 2022-04-22T01:20:32.2087410Z
[01:20:32]: [33m[iTMSTransporter] 2022-04-22T01:20:32.2189840Z [0m
2022-04-22T01:20:32.2290160Z [01:20:32]: [33m[iTMSTransporter]
2022-04-22T01:20:32.2392840Z [0m 2022-04-22T01:20:32.2494790Z
[01:20:32]: [33m[iTMSTransporter] 2022-04-22T01:20:32.2597270Z [0m
2022-04-22T01:20:32.2699930Z [01:20:32]: [33m[iTMSTransporter]
2022-04-22T01:20:32.2802450Z [0m 2022-04-22T01:20:32.2903000Z
[01:20:32]: [33m[iTMSTransporter] Error Summary
2022-04-22T01:20:32.3004120Z [0m 2022-04-22T01:20:32.3105710Z
[01:20:32]: [33m[iTMSTransporter] 2022-04-22T01:20:32.3158440Z [0m
2022-04-22T01:20:32.3209430Z [01:20:32]: [33m[iTMSTransporter]
iTMSTransporter could not generate an itmsp: null
2022-04-22T01:20:32.3259380Z [0m 2022-04-22T01:20:32.3361780Z
[01:20:32]: [33m[iTMSTransporter] An exception has occurred: null
2022-04-22T01:20:32.3461800Z [0m 2022-04-22T01:20:32.3552070Z
[01:20:32]: [33m[iTMSTransporter] [2022-04-22 01:20:31 UTC]
DBG-X: Returning 1 2022-04-22T01:20:32.3611160Z [0m
2022-04-22T01:20:32.3668780Z [01:20:32]: iTunes Transporter output
above ^ 2022-04-22T01:20:32.3705330Z [01:20:32]: [31miTMSTransporter
could not generate an itmsp: null
Although the above error is pretty ambiguous it could be a result of the actuall .ipa not being validate. This should be the first thing that is tried before diagnosing certificates etc. Use the following commands to validate your app:
xcrun altool --validate-app -f [ipaname].ipa --type ios -u appstore-username -p appspecific-password
or with app store connect api key
xcrun altool --validate-app -t ios --apiKey unique-api-key --apiIssuer api-key-issuer -f ipname.ipa
Example error output
2022-04-26 09:09:22.285 *** Error: The Info.plist in the package must contain the CFBundleVersion key. Unable to validate your application. (-27001) {
NSLocalizedDescription = "The Info.plist in the package must contain the CFBundleVersion key.";
NSLocalizedFailureReason = "Unable to validate your application."; }
I had a CICD pipeline in jenkins which initially connects with strapi then it will do the gatsby build. But in jenkins it shows error Plugin gatsby-source-strapi returned an error and Request failed with status code 500. My jenkins was running on aws server instance. But when I tried this CICD build in my localhost jenkins it is working properly.
What may be issue with my jenkins.
Or do I need to change gatsby-config.js?
My jenkins error message
error Plugin gatsby-source-strapi returned an error
[0m
[0m [0m[97m[41mError[0m[37m[41m:[0m[37m[41m [0m[97m[41mRequest failed with status code 500[0m
[0m [0m
[0m [0m[90m-[0m [0m[93mcreateError.js[0m[90m:[0m[93m16[0m[37m [0m[37mcreateError[0m
[0m [0m [0m[90m[SH_Website_CI_CD]/[axios]/lib/core/createError.js:16:15[0m
[0m [0m
[0m [0m[90m-[0m [0m[93msettle.js[0m[90m:[0m[93m18[0m[37m [0m[37msettle[0m
[0m [0m [0m[90m[SH_Website_CI_CD]/[axios]/lib/core/settle.js:18:12[0m
[0m [0m
[0m [0m[90m-[0m [0m[93mhttp.js[0m[90m:[0m[93m201[0m[37m [0m[37mIncomingMessage.handleStreamEnd[0m
[0m [0m [0m[90m[SH_Website_CI_CD]/[axios]/lib/adapters/http.js:201:11[0m
[0m [0m
[0m [0m[90m-[0m [0m[93mnext_tick.js[0m[90m:[0m[93m63[0m[37m [0m[37mprocess._tickCallback[0m
[0m [0m [0m[90minternal/process/next_tick.js:63:19[0m
[0m [0m
[0m
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gatsby-starter-default#0.1.0 cdnBuild: `NODE_ENV=cdn gatsby build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gatsby-starter-default#0.1.0 cdnBuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /var/lib/jenkins/.npm/_logs/2019-05-30T05_40_12_432Z-debug.log
[Pipeline] }
[Pipeline] // stage
[Pipeline] echo
ERROR - hudson.AbortException: script returned exit code 1
Any help
Thank you
Hi i'm running a test using galen framework on my local machine and it runs successfully but when it runs on jenkins I get the following error:
> galen test ./test/test-e2e/ui_galen/tests/HomePage.test.js --htmlreport reports -Dwebdriver.chrome.driver=./test/test-e2e/bin/drivers/linux/chromedriver
========================================
Test: valida la home page de identity validation on desktop emulation en 1024 device
========================================
Jan 23, 2018 11:16:35 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Starting ChromeDriver 2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881) on port 32254
Only local connections are allowed.
org.mozilla.javascript.WrappedException: Wrapped org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881),platform=Linux 4.4.0-1022-aws x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.06 seconds
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: '82965b46ff8c', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-1022-aws', java.version: '1.8.0_151'
Driver info: driver.version: ChromeDriver (<cmd>#37)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen._cmd__18._c_createDriver_2(<cmd>:37)
at org.mozilla.javascript.gen._cmd__18.call(<cmd>)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at org.mozilla.javascript.gen._app___test_test_e2e_ui_galen_tests_______ui_galen_config_devices_js_25._c_anonymous_16(/app/./test/test-e2e/ui_galen/tests/../../ui_galen/config/devices.js:116)
at org.mozilla.javascript.gen._app___test_test_e2e_ui_galen_tests_______ui_galen_config_devices_js_25.call(/app/./test/test-e2e/ui_galen/tests/../../ui_galen/config/devices.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen._app___test_test_e2e_ui_galen_tests_______ui_galen_config_galen_config_js_23._c_openDriverForDevice_6(/app/./test/test-e2e/ui_galen/tests/../../ui_galen/config/galen_config.js:58)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
I have installed Xvfb on jenkins. Is there an extra configuration for Galen to run on jenkins?
Here is the Xvfb config I have:
echo $'\nInitializing X virtual framebuffer (Jenkins only) ...'
export DISPLAY=:0
Xvfb :0 -screen 0 1024x768x8 &> /dev/null &
After that is that I run the npm run e2e-galen:ci command.
did yo started Xvfb before running the Galen commands?
e.g.
Xvfb :99 &
export DISPLAY=:99
I am trying to deploy the war file from Jenkins to Weblogic 12 server and it's failing with the below error message.
CAN ANY ONE PLEASE COMMENT ON THE BELOW Jenkins console ERROR, NOT SURE WHAT I AM MISSING
$ "C:\Program Files\Java\jdk1.8.0_51\bin/java" -Xms512M -Xmx512M -cp C:\SOFTWA~1\WLS121~1\wls12130\wlserver\server\lib\weblogic.jar weblogic.Deployer -debug -remote -verbose -noexit -name trucks -targets AdminServer -adminurl t3://wsxxxx:7001 -user Admin -password pa$$w0rd -undeploy
[WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY.
[WeblogicDeploymentPlugin] - DEPLOYING ARTIFACT...
$ "C:\Program Files\Java\jdk1.8.0_51\bin/java" -Xms512M -Xmx512M -cp C:\SOFTWA~1\WLS121~1\wls12130\wlserver\server\lib\weblogic.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name trucks -source C:\Users\aa\.jenkins\workspace\mytruck\target\trucks.war -targets AdminServer -adminurl t3://wsxxxx:7001 -user Admin -password pa$$w0rd -deploy
java.lang.RuntimeException: task completed abnormally (exit code = 1)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:244)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173)
at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
at hudson.model.Run.execute(Run.java:1766)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)
ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.
[INFO] ------------------------------------------------------------------------
[INFO] DEPLOYMENT FAILURE
[INFO] ------------------------------------------------------------------------
Build step 'Deploy the artifact to any Weblogic environments' changed build result to FAILURE
Finished: FAILURE
Be sure to use the authMode of BY_LOGIN and set the login and password in the tags of your WebLogic Deployer configuration file.
<login>weblogic</login>
<password>password</password>
<authMode>BY_LOGIN</authMode>
I'm having a issue with the integration of a SoapUi testcase and Jenkins.
I'm calling the test directly by Ant and it's working. But When i'm calling my ant by jenkins , i'm getting a java.lang.nullpointerexception.
I've also try to directly call the ant by windows batch command instead of "invoke ant"
The jenkins console give me that
soapui-tests:
[exec] SoapUI Pro 4.6.4 TestCase Runner
[exec] 16:08:45,279 INFO [SoapUI] Adding [C:\ESP_Testware\ESP_Tools\SoapUI-Pro-4.6.4\bin\ext\sqljdbc.jar] to extensions classpath
[exec] 16:08:45,279 INFO [DefaultSoapUICore] Creating new settings at [C:\soapui-settings.xml]
[exec] 16:08:45,997 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\ESP_Testware\ESP_Tools\Jenkins\jobs\ESP_QA_WS_REGRESSION\scripts]
[exec] 16:08:45,997 INFO [DefaultSoapUICore] Adding listeners from [C:\ESP_Testware\ESP_Tools\SoapUI-Pro-4.6.4\bin\listeners\demo-listeners.xml]
[exec] 16:08:48,025 INFO [WsdlProject] Loaded project from [file:/C:/ESP_Testware/ESP_Projects/Test-Ws/Multi_1_1_7.xml]
[exec] 16:08:48,586 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\ESP_Testware\ESP_Tools\Jenkins\jobs\ESP_QA_WS_REGRESSION\scripts]
[exec] 16:08:52,018 INFO [SoapUIProTestCaseRunner] Running SoapUI tests in project [EnvDev 1_1_7]
[exec] 16:08:52,018 INFO [SoapUIProTestCaseRunner] Running TestSuite [MS_TEST], runType = SEQUENTIAL
[exec] 16:08:52,034 INFO [SoapUIProTestCaseRunner] Running SoapUI testcase [LogOn]
[exec] 16:08:52,034 INFO [SoapUIProTestCaseRunner] running step [LogOn - Request 1]
[exec] 16:08:52,143 ERROR [WsdlSubmit] Exception in request: java.lang.NullPointerException
[exec] java.lang.NullPointerException
[exec] 16:08:52,143 ERROR [SoapUI] An error occurred [java.lang.NullPointerException], see error log for details
[exec] at com.btr.proxy.search.browser.ie.IEProxySearchStrategy.createPacSelector(IEProxySearchStrategy.java:70)
[exec] at com.btr.proxy.search.browser.ie.IEProxySearchStrategy.getProxySelector(IEProxySearchStrategy.java:44)
[exec] 16:08:52,143 INFO [SoapUIProTestCaseRunner] Assertion [SOAP Response] has status UNKNOWN at com.btr.proxy.search.ProxySearch.getProxySelector(ProxySearch.java:193)
[exec]
[exec] 16:08:52,143 INFO [SoapUIProTestCaseRunner] Assertion [Check for existance of [a:Token]] has status UNKNOWN
[exec] at com.eviware.soapui.impl.wsdl.support.http.CompositeHttpRoutePlanner.getProxySelector(CompositeHttpRoutePlanner.java:72)
[exec] 16:08:52,143 ERROR [SoapUIProTestCaseRunner] LogOn - Request 1 failed, exporting to [C:\ESP_Testware\ESP_Log\MS_TEST-LogOn-LogOn__Request_1-0-FAILED.txt] at com.eviware.soapui.impl.wsdl.support.http.CompositeHttpRoutePlanner.determineRoute(CompositeHttpRoutePlanner.java:59)
[exec]
[exec] at org.apache.http.impl.client.DefaultRequestDirector.determineRoute(DefaultRequestDirector.java:709)
[exec] 16:08:52,143 INFO [SoapUIProTestCaseRunner] Finished running SoapUI testcase [LogOn], time taken: 96ms, status: FAILED at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:356)
[exec]
[exec] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
[exec] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
[exec] 16:08:52,159 INFO [SoapUIProTestCaseRunner] TestSuite [MS_TEST] finished with status [FAILED] in 109ms at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:238)
[exec]
[exec] at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:348)
[exec] at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:318)
[exec] at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:232)
[exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
[exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
[exec] at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:238)
[exec] at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:417)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:235)
[exec] at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:148)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:43)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
[exec] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[exec] at java.util.concurrent.FutureTask.run(Unknown Source)
[exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[exec] at java.lang.Thread.run(Unknown Source)
The SoapUi test case log give me that
Status: FAILED
Time Taken: 96
Size: 0
Timestamp: Fri Jan 17 16:08:52 EST 2014
TestStep: LogOn - Request 1
----------------- Messages ------------------------------
java.lang.NullPointerException
----------------- Properties ------------------------------
Encoding: UTF-8
Endpoint: http://dev.rxassyst.com/Blackboxqa/1_1_1/session/RxAssyst.svc
---------------- Request ---------------------------
<soapenv:Envelope
xmlns:rxas="http://schemas.datacontract.org/2004/07/RxAssystLib.Contracts.Data"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:User>
<rxas:Password>Blackbox</rxas:Password>
<rxas:UserName>jm</rxas:UserName>
</tem:User>
<tem:UserInfo field:nil="true" xmlns:field="http://www.w3.org/2001/XMLSchema-
instance"/>
</soapenv:Body>
</soapenv:Envelope>
---------------- Response --------------------------
- missing response / garbage collected -
As venergiac pointed out it seems to be a problem reading proxy settings. By default SoapUI automatically tries to determine proxy settings.
If you are not using a proxy you can circumvent the problem by turning off the proxy. You can do that by supplying a soapui-settings.xml file with -t parameter to the testrunner. Easiest way to generate the file is to copy the settings file from your home folder on you local machine with SoapUI installed. Make sure to have proxy disabled in SoapUI before copying the settings file.