title,body,link,tags,view_count,is_answered,score,answer_count
Difference between Autosar Conformance testing and Acceptance testing,"<p>I am very new to Autosar and looking at what needs to be done to test a SUT/DUT (System/Device under test) confirm to Autosar specifications
I read the  Autosar conformance test specification (Part 1 to 4)
and they have a separate link on website that talks of Acceptance test
In fact there is no direct link on portal for conformance testing. Only doing a Google search lead to those documents hosted by Autosar.org. So i presume conformance testing is also relevant to device testers</p>
<p>Are Autosar Conformance testing and Acceptance the same ?
When is Conformance test done and when Acceptance test are done ?</p>
<p>Thanks</p>
",https://stackoverflow.com/questions/62654387/difference-between-autosar-conformance-testing-and-acceptance-testing,"['testing', 'autosar']",118,False,2,0
what is the difference between system and acceptance testing as a tester? what extra test cases will acceptance testing produce?,"<p>I read some of the previous answers of similar questions on here but i am not satisfied. So both System and acceptance testing evaluates the system against the requirements.  </p>

<p>Acceptence testing is for the users/customers and they decide if they will accept the system. But acceptance testing is allso for us testers... here i am abit confused of what extra test cases i will produce in the acceptance-phase that i did not already produce in the system phase?</p>
",https://stackoverflow.com/questions/60264829/what-is-the-difference-between-system-and-acceptance-testing-as-a-tester-what-e,"['testing', 'acceptance-testing']",368,True,0,1
"Is there a way to do an &quot;if I see, then…&quot; with webdriver acceptance testing?","<p>I'm using webdriver for acceptance testing. <a href=""https://codeception.com/docs/03-AcceptanceTests#WebDriver"" rel=""nofollow noreferrer"">https://codeception.com/docs/03-AcceptanceTests#WebDriver</a>
I'm running into a thing where depending on if new features are launched, a popup will sometimes be there to notify the user of the new features. So that popup may or may not be there depending on where we are in the release cycle. Is there a way to say: &quot;If I see , click Close&quot; ?</p>
",https://stackoverflow.com/questions/64301244/is-there-a-way-to-do-an-if-i-see-then-with-webdriver-acceptance-testing,"['selenium-webdriver', 'webdriver', 'selenium-chromedriver', 'codeception', 'acceptance-testing']",45,False,0,2
what is the difference between system and acceptance testing as a tester? what extra test cases will acceptance testing produce?,"<p>I read some of the previous answers of similar questions on here but i am not satisfied. So both System and acceptance testing evaluates the system against the requirements.  </p>

<p>Acceptence testing is for the users/customers and they decide if they will accept the system. But acceptance testing is allso for us testers... here i am abit confused of what extra test cases i will produce in the acceptance-phase that i did not already produce in the system phase?</p>
",https://stackoverflow.com/questions/60264829/what-is-the-difference-between-system-and-acceptance-testing-as-a-tester-what-e,"['testing', 'acceptance-testing']",368,True,0,1
"Is there a way to do an &quot;if I see, then…&quot; with webdriver acceptance testing?","<p>I'm using webdriver for acceptance testing. <a href=""https://codeception.com/docs/03-AcceptanceTests#WebDriver"" rel=""nofollow noreferrer"">https://codeception.com/docs/03-AcceptanceTests#WebDriver</a>
I'm running into a thing where depending on if new features are launched, a popup will sometimes be there to notify the user of the new features. So that popup may or may not be there depending on where we are in the release cycle. Is there a way to say: &quot;If I see , click Close&quot; ?</p>
",https://stackoverflow.com/questions/64301244/is-there-a-way-to-do-an-if-i-see-then-with-webdriver-acceptance-testing,"['selenium-webdriver', 'webdriver', 'selenium-chromedriver', 'codeception', 'acceptance-testing']",45,False,0,2
"Content downloading(CSS, JS etc) taking too much time which making loading too slow","<p>I am working on a spring framework project optimization. Its taking 2 minutes+ to load. When I checked in
Network console, it was js, css content download which were the main reason. 200KB file taking 2 minutes to be downloaded. Every 1KB taking 2-8 Seconds to be downloaded(other files).</p>
<p>Generated .war file relocating those css, js files in webroot but nothing improved.Where should I investigate to find the delay in content download? Could modifying .jsp files directly in .war file be helpful? It's not in localhost, I am deploying it in User Acceptance Testing server(UAT).</p>
<p>Tech Stack : Spring framework, Angular, GWT.</p>
",https://stackoverflow.com/questions/65105912/content-downloadingcss-js-etc-taking-too-much-time-which-making-loading-too-s,"['angularjs', 'spring-boot', 'performance', 'spring-mvc', 'downloading-website-files']",643,False,1,0
What is the good way of working when moving from on-premise to Azure PaaS model?,"<p>We plan to migrate to Azure cloud and would like to know what is the recommened way of working, especially when the teams are used to working with dedicated UAT/DEV servers.</p>
<p>We have about 10 UAT physical database servers, each used for a different purpose. Some servers are used for integration testing, few for user acceptance testing, for chain testing etc.</p>
<p>We plan to use services such as Azure Data Factory (SSIS IR), Azure SQL Managed Instance, Virtual machines for custom applications</p>
<p>Creating the same number of database servers on cloud would be too expensive. How can we best deal with such scenario and how it is handled within your teams? Any pointers are appreciated.</p>
",https://stackoverflow.com/questions/65412126/what-is-the-good-way-of-working-when-moving-from-on-premise-to-azure-paas-model,"['azure', 'azure-sql-database', 'virtual-machine', 'azure-data-factory']",118,False,0,1
Is there a maximum number of Azure DevOps Organizations per Azure Directory?,"<p>I am in the process of planning a transition to Azure DevOps for an ERP consulting company.  Our goal is to integrate Customer Stakeholders into Azure DevOps for faster feedback on requirements gathering and user acceptance testing.  In order to completely segregate customers I have decided that creating an Org per customer will be the best approach.  (Due to current stakeholder permission limitations: <a href=""https://developercommunity.visualstudio.com/content/problem/485973/userstakeholder-has-access-to-organization-setting.html"" rel=""nofollow noreferrer"">User/Stakeholder has access to organization settings</a>)</p>

<p>Before moving forward with this approach, I wanted to ensure that it can scale as our customer base continues to grow.  I have not been able identify a ceiling for Azure DevOps Organizations per Azure Active Directory.  Can anyone confirm if there is a limit?</p>
",https://stackoverflow.com/questions/61683348/is-there-a-maximum-number-of-azure-devops-organizations-per-azure-directory,"['azure', 'azure-devops']",2611,True,0,2
Getting java.net.SocketTimeoutException: connect timed out during AWS CodeBuild,"<p>During acceptance testing in AWS CodeBuild we are able to request a .jar into the pipeline, but the command invoking the .jar fails to execute (URL's &amp; IP's modified in this example, for obsfuscation purposes):</p>
<pre><code>[Container] 2020/07/08 14:53:37 Running command java -jar qa-jenkins-cli.jar -s https://example.com/jenkins/ -noCertificateCheck build RUN-l1-Regression -s -v -p ReasonForRun=&quot;AWS pipeline run&quot; -p slavepool=&quot;DI&quot; -p HOST_VALUES=&quot;127.0.0.1 sp.l1.example.com&quot;
Skipping HTTPS certificate checks altogether. Note that this is not secure at all.
java.net.SocketTimeoutException: connect timed out
    at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
    at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
    at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
    at java.base/java.net.Socket.connect(Socket.java:609)
    at hudson.cli.CLI.connectViaCliPort(CLI.java:210)
    at hudson.cli.CLI.&lt;init&gt;(CLI.java:128)
    at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
    at hudson.cli.CLI._main(CLI.java:479)
    at hudson.cli.CLI.main(CLI.java:390)
    Suppressed: java.io.EOFException: unexpected stream termination
        at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:331)
        at hudson.remoting.Channel.&lt;init&gt;(Channel.java:422)
        at hudson.remoting.Channel.&lt;init&gt;(Channel.java:401)
        at hudson.remoting.Channel.&lt;init&gt;(Channel.java:397)
        at hudson.remoting.Channel.&lt;init&gt;(Channel.java:386)
        at hudson.remoting.Channel.&lt;init&gt;(Channel.java:378)
        at hudson.remoting.Channel.&lt;init&gt;(Channel.java:354)
        at hudson.cli.CLI.connectViaHttp(CLI.java:159)
        at hudson.cli.CLI.&lt;init&gt;(CLI.java:132)
        ... 3 more

[Container] 2020/07/08 14:54:01 Command did not exit successfully java -jar qa-jenkins-cli.jar -s https://example.com/jenkins/ -noCertificateCheck build RUN-l1-Regression -s -v -p ReasonForRun=&quot;AWS pipeline run&quot; -p slavepool=&quot;DI&quot; -p HOST_VALUES=&quot;127.0.0.1 sp.l1.example.com&quot; exit status 255
[Container] 2020/07/08 14:54:01 Phase complete: PRE_BUILD State: FAILED
[Container] 2020/07/08 14:54:01 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: java -jar qa-jenkins-cli.jar -s https://example.com/jenkins/ -noCertificateCheck build RUN-l1-Regression -s -v -p ReasonForRun=&quot;AWS pipeline run&quot; -p slavepool=&quot;DI&quot; -p HOST_VALUES=&quot;127.0.0.1 sp.l1.example.com&quot;. Reason: exit status 255
</code></pre>
<p>Here is the <em>app-test-buildspec.yml</em> (the <code>wget</code> works):</p>
<pre><code># builld spec version.  keep at 0.2
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-versions
version: 0.2

phases:
  pre_build:
    commands:
      #- echo &quot;Installing jq (JSON parser)...&quot;
      #- yum install -y jq gettext
      - echo &quot;deploy_phase=${deploy_phase} developer_prefix=${developer_prefix} environment=${environment} account_id=${account_id} account_alias=${account_alias}&quot;
      - $(cat version.json | jq -j '&quot;export app_name=\(.app_name) app_version=\(.app_version) s3_version=\(.s3_version)&quot;')
      - echo &quot;app_name=${app_name} app_version=${app_version} s3_version=${s3_version} developer_prefix=${developer_prefix} environment=${environment}&quot;
      - $(cat app-deploy.json | jq -j '&quot;export UseFargate=\(.Parameters.UseFargate)&quot;')
      - echo &quot;UseFargate=${UseFargate}&quot;
      - wget https://example.com/jenkins/jenkins-cli.jar -O qa-jenkins-cli.jar
      - java -jar qa-jenkins-cli.jar -s https://example.com/jenkins/ -noCertificateCheck build RUN-l1-Regression -s -v -p ReasonForRun=&quot;AWS pipeline run&quot; -p slavepool=&quot;DI&quot; -p HOST_VALUES=&quot;127.0.0.1 sp.l1.example.com&quot;
  build:
    commands:
      - pip install boto3 pytest
      - pytest -o log_cli=true -o log_cli_level=INFO -v tests/test_ecs_cluster.py

artifacts:
  files:
    - '**/*'
</code></pre>
<p>We have DNS mirroring set up so that certain AWS processes have access to on-prem services, such as the test suite we're trying to run here. The tests are being run in the VPC because of the mirroring. We know that the mirroring is working because we can execute the <code>wget</code> that retrieve the .jar file. We cannot see this call in the flow logs anywhere.</p>
<p>Does anyone have any insight on what may be going on here?</p>
",https://stackoverflow.com/questions/62814728/getting-java-net-sockettimeoutexception-connect-timed-out-during-aws-codebuild,"['java', 'jar', 'aws-codepipeline', 'aws-codebuild']",1190,True,0,1
Testing jar files in FitNesse,"<p>Sorry for the dumb question, I'm using FitNesse for the first time and I'm not sure I understand how I should use it for acceptance testing...</p>
<p>So the first question is whether it is possible to somehow run test on the whole program (eg. on a .jar file) or run the main() method of the application and get the results from the command line.</p>
<p>If the answer yes: is this a bad idea? :D If I understand correctly, acceptance tests should verify if the requirements of a specification are met, but I haven't found any example which would show how to test a complete software in FitNesse. Moreover, every tutorial I saw describes a small test on a trivial example (even the two-minute-tutorial on fitnesse.org) which to me looks like a unit test.</p>
<p>I appreciate any help :)</p>
",https://stackoverflow.com/questions/64866351/testing-jar-files-in-fitnesse,"['java', 'jar', 'fitnesse', 'acceptance-testing']",168,True,0,1
What drawbacks are there if we fire events after projection?,"<p><em>Some project context - FYI</em></p>

<p>In our system we use some acceptance testing with cucumber. In the test runs we use a fully setup system of microservices (local machine). The event sourcing is managed by an Axon Event Store.</p>

<p><em>Scenario</em></p>

<p>We apply commands to aggregates and fire business events. Projection is implemented as an event handler.
Other services are listening the the business event and read the written data (REST).</p>

<p>We do it that way to keep our events small.</p>

<p>To overcome the eventual consistency period between business event and projection, while reading occurs in other service, we have many statements in our cucumber steps like</p>

<pre><code>Thread.sleep(5000L);
</code></pre>

<p>But the sleep value depends on the performance index of underlying hardware. So tests are brittle.</p>

<p><em>Question</em>
Would it be an option to fire events after the projection has written data? So we could read the data with guarantee of actuality.</p>
",https://stackoverflow.com/questions/59944457/what-drawbacks-are-there-if-we-fire-events-after-projection,"['event-sourcing', 'cucumber-java', 'axon', 'eventual-consistency']",117,True,0,1
net::ERR_NAME_NOT_RESOLVED when running Capybara tests on Heroku CI,"<p>I've got an <code>ActionDispatch::SystemTestCase</code> that runs fine locally, but fails with the following error in Heroku CI:</p>
<pre><code>Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED
  (Session info: headless chrome=85.0.4183.83)
    test/system/my_failing_test.rb:29
</code></pre>
<p>It might be worth noting that line 29 is a Capybara <code>visit</code> command, hence the DNS-related error message.</p>
<p>More importantly, I've followed the Heroku documentation for setting up Selenium on headless Chrome. The important parts of that configuration, I believe, are here:
<a href=""https://devcenter.heroku.com/articles/heroku-ci-browser-and-user-acceptance-testing-uat#testing-with-selenium"" rel=""nofollow noreferrer"">https://devcenter.heroku.com/articles/heroku-ci-browser-and-user-acceptance-testing-uat#testing-with-selenium</a></p>
<p>To sum my configuration up:
I have the following buildpacks for my test environment in my <code>app.json</code>:</p>
<p>heroku/ruby<br />
heroku/google-chrome<br />
heroku/chromedriver</p>
<p>...and I've added verbatim the &quot;special configuration&quot; Heroku advises (#3 from the above link)
<a href=""https://github.com/heroku/heroku-buildpack-google-chrome#selenium"" rel=""nofollow noreferrer"">https://github.com/heroku/heroku-buildpack-google-chrome#selenium</a></p>
<p>Is there some piece of server configuration that's missing when the buildpacks are used?<br />
What is is about <code>rails test</code> that handles the test server web calls that the buildpacks lack?</p>
<p>I've fought with this for a while, so any suggestions are greatly appreciated!</p>
",https://stackoverflow.com/questions/63804690/neterr-name-not-resolved-when-running-capybara-tests-on-heroku-ci,"['ruby-on-rails', 'selenium', 'heroku', 'continuous-integration', 'selenium-chromedriver']",1413,False,3,0
Odd linear model results,"<p>I'm unit acceptance testing some code I wrote. It's conceivable that at some point in the real world we will have input data where the dependent variable is constant. Not the norm, but possible. A linear model should yield coefficients of 0 in this case (right?), which is fine and what we would want -- but for some reason I'm getting some wild results when I try to fit the model on this use case.</p>

<p>I have tried 3 models and get diffirent weird results every time -- or no results in some cases.</p>

<p>For this use case all of the dependent observations are set at 100, all the freq_weights are set at 1, and the independent variables are a binary coded dummy set of 20 features.</p>

<p>In total there are 150 observations.</p>

<p>Again, this data is unlikely in the real world but I need my code to be able to work on this ugly data. IDK why I'm getting such erroneous and different results.</p>

<p>As I understand with no variance in the dependent variable I should be getting 0 for all my coefficients.</p>

<pre><code>freq = freq['Freq']


Indies = sm.add_constant(df)

model = sm.OLS(df1, Indies)

res = model.fit()

res.params

</code></pre>

<p>yields:</p>

<pre><code>const               65.990203
x1                  17.214836

</code></pre>

<pre><code>reg = statsmodels.GLM(df1, Indies, freq_weights = freq)

results = reg.fit(method = 'lbfgs', max_start_irls=0)

results.params

</code></pre>

<p>yields:</p>

<pre><code>const               83.205034
x1                  82.575228

</code></pre>

<pre><code>reg = statsmodels.GLM(df1, Indies, freq_weights = freq)

result2 = reg.fit()

result2.params

</code></pre>

<p>yields</p>

<pre><code>PerfectSeparationError: Perfect separation detected, results not available
</code></pre>
",https://stackoverflow.com/questions/61943245/odd-linear-model-results,"['python', 'statistics', 'statsmodels', 'glm']",36,False,0,0
How to test container running in docker-compose on gitlab,"<p>I have an application that runs in docker.  For acceptance testing, I use docker-compose (this let's developers reproduce the environment locally, including the database).  These acceptance tests require the base url (or analogous ip) of a (containerized) webservice running in docker-compose.  I have been able to successfully run the application and the acceptance tests locally.  In order to do this, I found the base url/ip three different ways:
1 - use localhost
2 - use docker inspect
3 - assign a static ip (via networks) in docker compose</p>
<p>However, none of these approaches seem to work on gitlab ci.  Can someone please help me find the url/ip of the container (running in docker-compose on gitlab ci) so I can use it to test?</p>
<p><em>Side Notes</em></p>
<ul>
<li>Repo link: <a href=""https://gitlab.com/connorbutch/reading-comprehension"" rel=""nofollow noreferrer"">https://gitlab.com/connorbutch/reading-comprehension</a> (on branch: 9-list-all-assessments)</li>
<li>Docker-compose link: <a href=""https://gitlab.com/connorbutch/reading-comprehension/-/blob/9-list-all-assessments/reading-comprehension-server-quarkus-impl/infrastructure/docker-compose.yml"" rel=""nofollow noreferrer"">https://gitlab.com/connorbutch/reading-comprehension/-/blob/9-list-all-assessments/reading-comprehension-server-quarkus-impl/infrastructure/docker-compose.yml</a></li>
<li>gitlab-ci file: <a href=""https://gitlab.com/connorbutch/reading-comprehension/-/blob/master/.gitlab-ci.yml"" rel=""nofollow noreferrer"">https://gitlab.com/connorbutch/reading-comprehension/-/blob/master/.gitlab-ci.yml</a></li>
<li><strong>The application (and acceptance tests) work locally, feel free to clone it and use the run it script to verify</strong></li>
<li><strong>Before I needed a database, the url of the container running in gitlab was 'docker', but that doesn't work in docker-compose</strong></li>
</ul>
",https://stackoverflow.com/questions/63892605/how-to-test-container-running-in-docker-compose-on-gitlab,"['docker-compose', 'continuous-integration', 'gitlab', 'gitlab-ci']",171,False,1,0
Stress testing URI using xargs + curls bash script failing with status empty,"<p>I'm trying to do user acceptance testing on an application which becomes unresponsive on a particular URL parameter included in the GET request.</p>
<p><strong>Steps</strong></p>
<ol>
<li><p>I have <code>curl</code> and run the GET req (crafted) copied curl syntax for Unix and copied to ubuntu server along with some changes.</p>
<pre><code>'https://abc.ai/getMultiDashboard/demouser' -H 'Cookie: _ga=GA1.2.561275388.1601468723; _hjid=ecd3d778-b7f5-4f7f-b3ef-6f9f12b13d66; 54651cc_an=4; _gid=GA1.2.1366208807.1601560229; _hjTLDTest=1; 54651cc_data=JTdCJTIyaWQlMjIlM0Ellc3NUb2tlbiUyMiUzQSUyMjA2MTk3NjM3NTgwOGE2N2RmZjlhMmJlOWJmODE5NDQzJTIyJTdE; 54651cc_loggedin=1; 54651cc_sound=true; 54651cc_read=true; 54651cc_popup=true; 54651cc_disablelastseen=false; 54651cc_usertype=loginuser; _hjIncludedInPageviewSample=1; _hjAbsoluteSessionInProgress=0; abc=s%3A8ZGd7Mol31n_Y8OCLq39dHoo3_mIlRhZ.pFQWz5gG9McKsQLzOikcTBmmb2Wcrxo%2B9u9iPpqoyxw; pageUrl=/#/dashboard/18; _gat_gtag_UA_97985973_5=1' 
&quot;https://abc.ai/getTagTrends/E1_CPU_PERCENTAGE/2020-9-12%2013:4:0/202**'23548'**0-09-15|%2013:04:00&quot;
&quot;https://abc.ai/getTagTrends/E1_CPU_PERCENTAGE/2020-9-12%2013:4:0/202**'`23548`'**0-09-15|%2013:04:00&quot;
</code></pre>
</li>
<li><p>The <code>**</code> asterisks are not part of the actual values; I use them to demarcate my <code>injected</code> value</p>
</li>
<li><p>Using a small bash script I have generated 1000s of (unique) payload combinations for Curl.</p>
<pre class=""lang-sh prettyprint-override""><code>#/bin/bash   
for ((i=0; i&lt;1000; ++i)); do
        echo &quot;
'https://abc.ai/getMultiDashboard/demouser' -H 'Cookie: _ga=GA1.2.561275388.1601468723; _hjid=ecd3d778-b7f5-4f7
f-b3ef-6f9f12b13d66; 54651cc_an=4; _gid=GA1.2.1366208807.1601560229; _hjTLDTest=1; 54651cc_data=JTdCJTIyaWQlMjIlM0ElMjJkZW1vdXNlciU yMiUyQyUyMm4lMjIlM0ElMjJkZW1vdXNlciUyMiUyQyUyMmZyaWVuZHMlMjIlM0ElMjIlMjIlMkMlMjJhdXRoJTIyJTNBJTIyZWQ0YjVhNDFkMzJlY2U4MzQ3Mzk0ZjlkZT    U5YThjMWQlMjIlMkMlMjJyZWZlcmVyJTIyJTNBJTIyaXJpZGl1bS1wcmVwcm9kLmVtcGlyaWMuYWklMjIlMkMlMjJhY2Nlc3NUb2tlbiUyMiUzQSUyMjA2MTk3NjM3NTgwO
GE2N2RmZjlhMmJlOWJmODE5NDQzJTIyJTdE; 54651cc_loggedin=1; 54651cc_sound=true; 54651cc_read=true; 54651cc_popup=true; 54651cc_disable
lastseen=false; 54651cc_usertype=loginuser; _hjIncludedInPageviewSample=1; _hjAbsoluteSessionInProgress=0; abc=s%3A8ZGd7Mol31n_
Y8OCLq39dHoo3_mIlRhZ.pFQWz5gG9McKsQLzOikcTBmmb2Wcrxo%2B9u9iPpqoyxw; pageUrl=/#/dashboard/18; _gat_gtag_UA_97985973_5=1' \&quot;https://abc.ai/getTagTrends/E1_CPU_PERCENTAGE/2020-9-12%2013:4:0/202'$((1 + RANDOM % 10000000))'0-09-15|%2013:04:00\&quot;&quot; 
&gt; URL.txt   
done
</code></pre>
</li>
<li><p>Final command for testing (one-liner) fails as
<code>cat URL.txt | xargs -I{}  -- curl -O {}</code></p>
</li>
</ol>
<p>Output:</p>
<pre><code>     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
</code></pre>
<p><strong>Expected output</strong>
when I run the curl manually copying the contents from URL file I get</p>
<pre><code>[{&quot;dashboard_id&quot;: 18, &quot;user_id&quot;: &quot;demouser&quot;, &quot;dashboard_name&quot;: &quot;My_dashboard_1&quot;, &quot;description&quot;: &quot;Test description One&quot;, &quot;creation_date&quot;: &quot;2020-09-21 10:13:00&quot;, &quot;dashboard_config&quot;: null, &quot;id&quot;: 5}]


&lt;html&gt;
&lt;head&gt;&lt;title&gt;504 Gateway Time-out&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;
&lt;center&gt;&lt;h1&gt;504 Gateway Time-out&lt;/h1&gt;&lt;/center&gt;
&lt;hr&gt;&lt;center&gt;nginx/1.18.0&lt;/center&gt;
</code></pre>
<p>In order to troubleshoot, i used <code>set -x</code> on shell cmd-line I can't see why or how the request is crafted and handled by the curl processes. The curl output shows output (above) which has all 0 values in all fields, this tell me its just a bad malformed request, which isn't the actual case since i manually tested running the URL payload given in URL.txt multiple times it works.</p>
<pre><code>EMPTY LINE
CODE
NEW-LINE

CODE
NEWLINE

...
</code></pre>
<p>I want to generate as many parallel requests as possible, without waiting for the first one to finish.</p>
<p><strong>Debug</strong></p>
<p>running it with <code>-v</code> using one-liner (showing only importants lines)</p>
<pre><code>&gt; GET /getMultiDashboard/demouser -H Cookie: _ga=GA1.2.561275388.1601468723; _hjid=ecd3d778-b7f5-4f7f-b3ef-6f9f12b13d66; 54651cc_an=4; _hjTLDTest=1; 54651cc_data=JTdCJTIyaWQlMjIlM0ElMgwOGE2N2RmZjlhMmJlOWJmODE5NDQzJTIyJTdE; 54651cc_loggedin=1; 54651cc_sound=true; 54651cc_read=true; 54651cc_popup=true; 54651cc_disablelastseen=false; 54651cc_usertype=loginuser; _gid=GA1.2.1722546791.1601890062; _hjIncludedInPageviewSample=1; _hjAbsoluteSessionInProgress=0; abc=s%3AKsRWcfNnOkbDHh1e65C3NwiDSZMx4LYg.zxLIymu488Ii5Z2%2Brz0qiwS17BzK2P7A0OoTSCHlMQM; pageUrl=/ HTTP/1.1
&gt; Host: abc.ai
&gt; User-Agent: curl/7.58.0
&gt; Accept: */*
&gt;
{ [5 bytes data]
&lt; HTTP/1.1 400 BAD_REQUEST
&lt; Content-Length: 0
&lt; Connection: Close
</code></pre>
<p>When I run it with <code>curl</code> alone not using <code>xargs</code> I get the correct output no <code>400</code> bad request</p>
<pre><code>&gt; Cookie: _ga=GA1.2.561275388.1601468723; _hjid=ecd3d778-b7f5-4f7f-b3ef-6f9f12b13d66; 54651cc_an=4; _hjTLDTest=1; 54651cc_data=JTdCJTIyaWQlMjIlM0ElMjJkZW1vdXNlciUyMiUyQyUyMm4lMjIlM0ElMjJkZW1vdXNJlOWJmODE5NDQzJTIyJTdE; 54651cc_loggedin=1; 54651cc_sound=true; 54651cc_read=true; 54651cc_popup=true; 54651cc_disablelastseen=false; 54651cc_usertype=loginuser; _gid=GA1.2.1722546791.1601890062; _hjIncludedInPageviewSample=1; _hjAbsoluteSessionInProgress=0; abc=s%3AKsRWcfNnOkbDHh1e65C3NwiDSZMx4LYg.zxLIymu488Ii5Z2%2Brz0qiwS17BzK2P7A0OoTSCHlMQM; pageUrl=/#/dashboard; _gat_gtag_UA_97985973_5=1
&gt;
&lt; HTTP/1.1 200 OK
&lt; Content-Type: text/html; charset=utf-8
&lt; Date: Mon, 05 Oct 2020 09:48:51 GMT
&lt; ETag: W/&quot;3b4-gP1vMAXMzUZy+pt7cwyOmQslPT8&quot;
&lt; Server: nginx/1.18.0
&lt; Strict-Transport-Security: max-age=15552000; includeSubDomains
&lt; Vary: Accept-Encoding
&lt; X-Content-Type-Options: nosniff
&lt; X-DNS-Prefetch-Control: off
&lt; X-Download-Options: noopen
&lt; X-Frame-Options: SAMEORIGIN
&lt; X-XSS-Protection: 1; mode=block
&lt; Content-Length: 948
&lt; Connection: keep-alive
&lt;
* Connection #0 to host abc.ai left intact
[{&quot;dashboard_id&quot;: 18, &quot;user_id&quot;: &quot;demouser&quot;, &quot;dashboard_name&quot;: &quot;My_dashboard_1&quot;, &quot;description&quot;: &quot;Test description One&quot;, &quot;creation_date&quot;: &quot;2020-09-21 10:13:00&quot;,  &quot;2020-08-12 09:08:00&quot;, &quot;dashboard_config&quot;: {}, &quot;sort_id&quot;: 4, &quot;id&quot;: 2}, {&quot;dashboard_id&quot;: 5}]* Found bundle for host abc.ai: 0x55836cf75a50 [can pipeline]
* Re-using existing connection! (#0) with host abc.ai
* Connected to abc.ai (52.86.136.249) port 443 (#0)
&gt; GET /getTagTr/E1_CP/2020-9-12%2013:4:0/202'6368'0-09-15|%2013:04:00 HTTP/1.1
&gt; Host: abc.ai
&gt; User-Agent: curl/7.58.0
&gt; Accept: */*
&gt; Cookie: _ga=GA1.2.561275388.1601468723; _hjid=ecd3d778-b7f5-4f7f-b3ef-6f9f12b13d66; 54651cc_an=4; _hjTLDTest=1; 54651cc_data=JTdCJTIyaWQlMjIlM0ElMjJkZW1vdXNlciUyMiUyQyUyMmjM3NTgwOGE2N2RmZjlhMmJlOWJmODE5NDQzJTIyJTdE; 54651cc_loggedin=1; 54651cc_sound=true; 54651cc_read=true; 54651cc_popup=true; 54651cc_disablelastseen=false; 54651cc_usertype=loginuser; _gid=GA1.2.1722546791.1601890062; _hjIncludedInPageviewSample=1; _hjAbsoluteSessionInProgress=0; abc=s%3AKsRWcfNnOkbDHh1e65C3NwiDSZMx4LYg.zxLIymu488Ii5Z2%2Brz0qiwS17BzK2P7A0OoTSCHlMQM; pageUrl=/#/dashboard; _gat_gtag_UA_97985973_5=1
</code></pre>
",https://stackoverflow.com/questions/64195729/stress-testing-uri-using-xargs-curls-bash-script-failing-with-status-empty,"['bash', 'curl', 'sed', 'sh', 'xargs']",1210,True,0,1
Find url/ip of container running in docker-compose in gitlab ci,"<p>I have an application that runs in docker-compose (for acceptance testing).  The acceptance tests work locally, but they require the host (or ip) of the webservice container running in docker-compose in order to send requests to it.  This works fine locally, but I cannot find the ip of the container when it is running in a gitlab ci server.  I've tried the following few solutions (all of which work when running locally, but none of which work in gitlab ci) to find the url of the container running in docker-compose in gitlab ci server:</p>
<ol>
<li>use &quot;docker&quot; as the host.  This works for an application running in docker, but not docker-compose</li>
<li>use docker-inspect to find the ip of the container (<em>docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' reading-comprehension</em>)</li>
<li>assign a static ip to the container using a network in docker-compose.yml (latest attempt).</li>
</ol>
<p>The gitlab ci file can be found here:
<a href=""https://gitlab.com/connorbutch/reading-comprehension/-/blob/9-list-all-assessments/.gitlab-ci.yml"" rel=""nofollow noreferrer"">https://gitlab.com/connorbutch/reading-comprehension/-/blob/9-list-all-assessments/.gitlab-ci.yml</a></p>
<pre><code>    image: connorbutch/gradle-and-java-11:alpha

variables:
  GRADLE_OPTS: &quot;-Dorg.gradle.daemon=false&quot;
  DOCKER_HOST: &quot;tcp://docker:2375&quot;
  DOCKER_DRIVER: &quot;overlay2&quot;

before_script:
  - export GRADLE_USER_HOME=`pwd`/.gradle

services:
  - docker:stable-dind

stages:
  - build
  - docker_build
  - acceptance_test

unit_test:
  stage: build
  script: ./gradlew check
  cache:
    key: &quot;$CI_COMMIT_REF_NAME&quot;
    policy: pull
    paths:
      - build
      - .gradle

build:
  stage: build
  script:
    - ./gradlew clean quarkusBuild
    - ./gradlew clean build -Dquarkus.package.type=native -Dquarkus.native.container-build=true
  cache:
    key: &quot;$CI_COMMIT_REF_NAME&quot;
    policy: push
    paths:
      - build
      - .gradle
  artifacts:
    paths:
      - reading-comprehension-server-quarkus-impl/build/

docker_build:
  stage: docker_build
  script:
    - cd reading-comprehension-server-quarkus-impl
    - docker build -f infrastructure/Dockerfile -t registry.gitlab.com/connorbutch/reading-comprehension:$CI_COMMIT_SHORT_SHA  .
    - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
    - docker push registry.gitlab.com/connorbutch/reading-comprehension:$CI_COMMIT_SHORT_SHA

acceptance_test:
  stage: acceptance_test
  only:
    - merge_requests
  script:
    - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
    - cd reading-comprehension-server-quarkus-impl/infrastructure
    - export IMAGE_TAG=$CI_COMMIT_SHORT_SHA
    - docker-compose up -d &amp; ../../wait-for-it-2.sh
    - cd ../..
    - ./gradlew -DBASE_URL='192.168.0.8' acceptanceTest
  artifacts:
    paths:
      - reading-comprehension/reading-comprehension-server-quarkus-impl/build/
</code></pre>
<p>The docker-compose file can be found here:
<a href=""https://gitlab.com/connorbutch/reading-comprehension/-/blob/9-list-all-assessments/reading-comprehension-server-quarkus-impl/infrastructure/docker-compose.yml"" rel=""nofollow noreferrer"">https://gitlab.com/connorbutch/reading-comprehension/-/blob/9-list-all-assessments/reading-comprehension-server-quarkus-impl/infrastructure/docker-compose.yml</a></p>
<p>Find the output of one of the failed jobs here:
<a href=""https://gitlab.com/connorbutch/reading-comprehension/-/jobs/734771859"" rel=""nofollow noreferrer"">https://gitlab.com/connorbutch/reading-comprehension/-/jobs/734771859</a></p>
<pre><code>#This file is NOT ever intended for use in production.  Docker-compose is a great tool for running
#database with our application for acceptance testing.
version: '3.3'

networks:
  network:
    ipam:
      driver: default
      config:
        - subnet: 192.168.0.0/24

services:
  db:
    image: mysql:5.7.10
    container_name: &quot;db&quot;
    restart: always
    environment:
       MYSQL_DATABASE: &quot;rc&quot;
       MYSQL_USER: &quot;user&quot;
       MYSQL_PASSWORD: &quot;password&quot;
       MYSQL_ROOT_PASSWORD: &quot;password&quot;
       MYSQL_ROOT_HOST: &quot;%&quot;
    networks:
      network:
        ipv4_address: 192.168.0.4
    ports:
      - '3306:3306'
    expose:
      - '3306'
    volumes:
      - db:/var/lib/mysql
  reading-comprehension-ws:
    image: &quot;registry.gitlab.com/connorbutch/reading-comprehension:${IMAGE_TAG}&quot;
    container_name: &quot;reading-comprehension&quot;
    restart: on-failure
    environment:
      WAIT_HOSTS: &quot;db:3306&quot;
      DB_USER: &quot;user&quot;
      DB_PASSWORD: &quot;password&quot;
      DB_JDBC_URL: &quot;jdbc:mysql://192.168.0.4:3306/rc&quot;
    networks:
      network:
        ipv4_address: 192.168.0.8
    ports:
      - 8080:8080
    expose:
      - 8080
volumes:
  db:
</code></pre>
<p><strong>Does anyone have any idea on how to access the ip of the container running in docker-compose on gitlab ci server?  Any suggestions are welcome.</strong></p>
<p>Thanks,</p>
<p>Connor</p>
",https://stackoverflow.com/questions/63864428/find-url-ip-of-container-running-in-docker-compose-in-gitlab-ci,"['docker', 'networking', 'docker-compose', 'gitlab', 'containers']",3216,True,1,2
Xcode external build tool target with dependencies on built executables,"<p>I am writing a swift CLI app, and am doing acceptance testing on it using <a href=""https://github.com/bats-core/bats-core"" rel=""nofollow noreferrer"">Bats (Bash Automated Testing System)</a>. I have an ""external build tool"" target that invokes bats from a shell script. This target declares dependencies on a few CLI app executable targets (including my main app). Then I have a scheme that builds the Bats target and also runs an XCTest target.</p>

<p>I haven't been able to consistently guarantee that the executable dependencies finish building completely before the Bats script is invoked. Whether I declare my scheme as parallelizable or not, I will inconsistently run into issues where the Bats script is invoked, but it can't find one of the executables it depends on since it hasn't yet been added to $TARGET_BUILD_DIR.</p>

<p>From the build logs, I can always see that the needed executable target has finished compiling, but when the issue occurs, the target is conspicuously missing completed steps for <code>Link &lt;executable&gt;</code>, <code>Sign &lt;executable&gt;</code>, and <code>Register execution policy exception for &lt;executable&gt;</code>.</p>

<p>My best interpretation of the problem is that Xcode releases locks for the target with the dependencies only once all dependencies have finished compiling, and not necessarily when the builds for those targets have completed fully.</p>

<p>The most reliable workaround I have found is to <code>sleep 1</code> in my shell script before invoking Bats. I also tried putting an aggregate target in between my external build tool target and the dependencies, but this didn't work reliably. <strong>Is there a way to have Xcode delay execution of the external build tool until the build of the dependent targets has fully completed?</strong></p>
",https://stackoverflow.com/questions/59709064/xcode-external-build-tool-target-with-dependencies-on-built-executables,"['xcode', 'xcodebuild']",308,False,1,0
How much data should be given in a cucumber feature file?,"<p>I'm trying to write some Gherkin feature files in order to do BDD acceptance testing using SpecFlow. The system I'm trying to test consists of multiple RESTful APIs - system has a microservice architecture. In a scenario, I need to be certain that some records already exist in the database prior to going with the actual scenario, so I've included a <code>Background</code> section with a <code>given</code> part. The problem I'm having is that each of those records that need to exist are created through APIs that require lots of data in their schema contact and the team requires that I specify each and every fields and their respective values in a record in a gherkin table. The result is something like this:</p>

<pre><code>| PassportExpireDate|PassportNumber|PassportCountry |Firstname|Lastname|LocalFirstname|LocalLastname | Birthday | NationalNumber | NationalityCountryId | PassengerType | Gender |PartyId | SourceTravelerId | CellNumber | Price|
</code></pre>

<p>This is the header of one of my tables which is going to be used to create a Traveler record in the database before starting the actual test by specification. However, as you can see this table has too much fields and therefore is too long too fit on the screen and thus very hard to read and maintain. secondly it's tightly coupled to the DTO schema. I argued that we shouldn't put this much detail on our specificatons, trying to include only vital high-level data (e.g. given we have an existing traveler named ""James Peterson"") but the team and the CTO insisted that these details should be present on the feature file. In my next attempt, I broke the tables into multiple tables (e.g. personal data, order data, passport data, etc.).</p>

<p>But I'm still confused and I think I'm still not doing the wrie thing. What's your recommendation? Do we have any rule of thumb or best practices for this?</p>
",https://stackoverflow.com/questions/59984862/how-much-data-should-be-given-in-a-cucumber-feature-file,"['cucumber', 'bdd', 'gherkin', 'acceptance-testing']",662,True,1,3
