title,body,link,tags,view_count,is_answered,score,answer_count
Acceptance testing functionality involving time-triggered azure function,"<p>My acceptance testing infrastructure uses specrun to create simulate a user, invoke my web service and check for results. This works well to test functionalities which involves user interactions (calling REST api, sending message etc). </p>

<p>But, in the backend I also have a functionality which involves a time-triggered Azure function which does some actions on certain azure blobs and sends a message to the user over an eventhub. How can I acceptance test functionality which involves this azure function ? - since this azure function is triggered only once every 6 hours, and not practical to run the acceptance test for a complete 6 hours to test this functionality.</p>

<p>Anybody has experience dealing which such a situation ? What would you suggest ? </p>
",https://stackoverflow.com/questions/48193627/acceptance-testing-functionality-involving-time-triggered-azure-function,"['c#', 'azure', 'azure-functions', 'acceptance-testing', 'specrun']",191,TRUE,-1,1
How to test download api using karate,"<p>I have an api for file download (<em>txt,</em>.doc,*.csv) using spring framework in java.i wanted to do acceptance testing using karate .how can i do that.</p>

<p>here is my code</p>

<pre><code>@RequestMapping(path = ""/download"", method = RequestMethod.GET)
public ResponseEntity&lt;Resource&gt; download(String param) throws 
IOException {
InputStreamResource resource = new InputStreamResource(new FileInputStream(file));
return ResponseEntity.ok()
        .headers(headers)
        .contentLength(file.length())
        .contentType(MediaType.parseMediaType(""application/octet-stream""))
        .body(resource);
</code></pre>

<p>}</p>
",https://stackoverflow.com/questions/49081135/how-to-test-download-api-using-karate,['karate'],2036,TRUE,2,1
&quot;cURL error 7: Failed to connect to 127.0.0.1 port 8888: Connection refused&quot; when using Travis CI with Laravel/Codeception,"<p>I'm using Laravel 5.6 with Codeception for acceptance testing, and this keeps happening:</p>

<pre><code>1) TestCest: Home
 Test  tests/acceptance/TestCest.php:home

  [GuzzleHttp\Exception\ConnectException] cURL error 7: Failed to connect to 127.0.0.1 port 8888: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)  

Scenario Steps:
 1. $I-&gt;amOnPage(""/"") at tests/acceptance/TestCest.php:6
</code></pre>

<p>Rarely is just seems to work randomly, but for the most part it errors. I've spent a while on this and would love a permanent fix.</p>

<p>some relevant files:</p>

<p>.travis.yml</p>

<pre><code>language: php
sudo: false
dist: trusty
cache: false

php:
  - 7.2.3

services:
  - mysql

before_install:
  - mysql -e 'CREATE DATABASE IF NOT EXISTS test;'

install:
  - cp .env.travis .env
  - composer self-update
  - composer install --no-interaction
  - npm i -g npm
  - npm install

before_script:
  - php artisan key:generate
  - php artisan migrate --no-interaction -vvv
  - php artisan serve --env=testing --no-ansi --no-interaction --port=8888 --host=localhost &amp;

script:
  - vendor/bin/codecept run acceptance --no-ansi --no-interaction
</code></pre>

<p>.env.travis</p>

<pre><code>APP_NAME=Laravel
APP_ENV=testing
APP_KEY=base64:dHJA2G0xXnUEP82ota/J4WBnXSYGP9VHRBl6fvclfjk=
APP_DEBUG=true
APP_URL=http://localhost:8888

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=test
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
</code></pre>
",https://stackoverflow.com/questions/49774813/curl-error-7-failed-to-connect-to-127-0-0-1-port-8888-connection-refused-whe,['travis-ci'],4733,TRUE,0,2
"Is there something in Meteor preventing process.on(&#39;exit&#39;, function() {}); from firing?","<p>I am performing acceptance testing on a chat application in Meteor with chimp. I create test users at server startup, and would like to remove them on shutdown.</p>

<p>I've found what should be a solution here:
<a href=""https://stackoverflow.com/questions/14031763/doing-a-cleanup-action-just-before-node-js-exits"">doing a cleanup action just before node.js exits</a>,</p>

<p>but this does not fire when the server is shutdown.</p>

<p>The code is as follows:</p>

<pre><code>Meteor.startup(function() {

    ....

    if (process.env.TEST_MODE === 'true') {

        process.stdin.resume();//so the program will not close instantly

        function exitHandler(options, err) {
            if (options.cleanup) //Teardown test users;
            if (err) console.log(err.stack);
            if (options.exit) process.exit();
        }

       //do something when app is closing
       process.on('exit', exitHandler.bind(null,{cleanup:true}));

       //catches ctrl+c event
       process.on('SIGINT', exitHandler.bind(null, {exit:true}));

       // catches ""kill pid"" (for example: nodemon restart)
       process.on('SIGUSR1', exitHandler.bind(null, {exit:true}));
       process.on('SIGUSR2', exitHandler.bind(null, {exit:true}));

       //catches uncaught exceptions
       process.on('uncaughtException', exitHandler.bind(null, {exit:true}));

    }

    ....

}
</code></pre>
",https://stackoverflow.com/questions/48506288/is-there-something-in-meteor-preventing-process-onexit-function-from,"['javascript', 'meteor']",208,FALSE,0,1
Gitflow - who tests master branch and who tests release branch,"<p>I want to propose Gitflow for our new web application. We have QA environment where product acceptance testing is done before release. I want to know which branch should be deployed to QA - release branch or master? Which branch should be deployed to production? If we deploy and test the release branch and then merge it back to master who will test master?</p>
",https://stackoverflow.com/questions/49103605/gitflow-who-tests-master-branch-and-who-tests-release-branch,"['git', 'github', 'git-flow']",702,TRUE,2,2
How do I test multiple browsers in Selenium WebDriver,"<p>We are using Selenium WebDriver and Cucumber for our Acceptance testing.  We have a collection of Features that we want to test, each with multiple scenarios, here is an example:</p>

<pre><code>  Scenario Outline: Unsuccessful login with W3ID credentials
    Given I navigate to the Bluecost Spreadsheet Upload Web url and receive a login screen 
    When I login using invalid credentials: ""&lt;user_id&gt;"" and ""&lt;user_pwd&gt;""
    Then the W3ID will reject my credentials, produce an error message and I will not proceed to BCSUW

    Examples: 
      | user_id   | user_pwd |
      | baduserid | badpass  |
</code></pre>

<p>I want to test each one of these Scenarios with each browser that we need to support:  FireFox, Edge, and Chrome.  How do I run those Features and Scenarios for each one of those 3 browsers?</p>
",https://stackoverflow.com/questions/52058073/how-do-i-test-multiple-browsers-in-selenium-webdriver,"['selenium-webdriver', 'cucumber-junit']",676,TRUE,0,1
Selenium Server with Chrome using Codeception RunProcess issue,"<p>I'm looking at using Selenium Server with Chrome to doing browser acceptance testing with the Codeception framework.  Working locally on a Windows 10 machine.</p>

<p>My acceptance.suite.yml:</p>

<pre><code>actor: AcceptanceTester

extensions:
    enabled:
        - Codeception\Extension\RunProcess:
            - php -S 127.0.0.1:4444
            - java -jar selenium-server-standalone-3.14.0.jar

modules:
    enabled:
        - WebDriver:
            url: 'http://mysite.dev/'
            browser: chrome
            host: localhost
            port: 4444
            window_size: 1024x768
            restart: true
        - Asserts
        - \Helper\AcceptanceInternal
</code></pre>

<p>Running my tests from the commandline, it starts selenium, but the tests fail with this error:</p>

<pre><code>AcceptanceInternal Tests (12) ------------------------------

  [RunProcess] Starting php -S 127.0.0.1:4444
  [RunProcess] Starting java -jar selenium-server-standalone-3.14.0.jar
1) ProductControllerCest: Cannot view index without logging in
 Test  tests/acceptanceInternal/Controller/Internal/ProductControllerCest.php:notLoggedInIndex



  [Facebook\WebDriver\Exception\WebDriverException] JSON decoding of remote response failed.
Error code: 4
The response: '\&lt;!doctype html&gt;\&lt;html&gt;\&lt;head&gt;\&lt;title&gt;404 Not Found\&lt;/title&gt;\&lt;style&gt;
body { background-color: #fcfcfc; color: #333333; margin: 0; padding:0; }
h1 { font-size: 1.5em; font-weight: normal; background-color: #9999cc; min-height:2em; line-height:2em; border-bottom: 1px inset black; margin: 0; }
h1, p { padding-left: 10px; }
code.url { background-color: #eeeeee; font-family:monospace; padding:0 2px;}
\&lt;/style&gt;
\&lt;/head&gt;\&lt;body&gt;\&lt;h1&gt;Not Found\&lt;/h1&gt;\&lt;p&gt;The requested resource \&lt;code class=""url""&gt;/wd/hub/session\&lt;/code&gt; was not found on this server.\&lt;/p&gt;\&lt;/body&gt;\&lt;/html&gt;'
</code></pre>

<p>However if I visit in the browser, I see selenium:
<a href=""http://localhost:4444/wd/hub/static/resource/hub.html"" rel=""nofollow noreferrer"">http://localhost:4444/wd/hub/static/resource/hub.html</a></p>

<p>Any suggestions about what might be going wrong here?</p>
",https://stackoverflow.com/questions/52599701/selenium-server-with-chrome-using-codeception-runprocess-issue,"['selenium', 'selenium-webdriver', 'selenium-chromedriver']",393,FALSE,0,0
mochajs &amp; chaijs - Uncaught TypeError: Cannot read property &#39;id&#39; of undefined,"<p>I am creating an bill tracking application that is having users create bills based on criteria I have created using javascript. </p>

<p>I am tasked with performing acceptance testing.</p>

<p>This is my code so far:
My index.js file</p>

<pre><code>const express = require('express')
const app = express()
const port = 3000

var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/bill');
var MongoClient = require('mongodb').MongoClient
var ObjectID = require('mongodb').ObjectID

app.use(express.json())
app.use(express.urlencoded({ extended: true }));
app.use(express.static('public'))
app.set('view engine', 'pug')
app.set('views', __dirname + '/views');

var billSchema = new mongoose.Schema(
{
  type: { type: String, required: true },
  dueDate: { type: Date, required: true },
  company: { type: String, required: true },
  amtDue: { type: Number, required: true },
  paidStatus: { type: String, required: true }
});

var bill = mongoose.model('bill', billSchema);

var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function() 
{
  app.get('/', (req, res) =&gt; 
  {
    bill.find({}, function(err, bills) 
    {
      if (err) 
      {
        console.log(err)
        res.render('error', {})
      } 
      else 
      {
        res.render('index', { bills: bills })
      }
    });
  });

  app.get('/bills/new', (req, res) =&gt; 
  {
    res.render('bill-form', { title: ""New bill"", bill: {} })
  });

app.get('/bills/:id/update', (req, res) =&gt; 
{
    let id = ObjectID.createFromHexString(req.params.id)

    bill.findById(id, function(err, bill) 
    {
      if (err) 
      {
        console.log(err)
        res.render('error', {})
      } 
      else 
      {
        if (bill === null) {
          res.render('error', { message: ""Not found"" })
        } else {
          res.render('bill-form', { title: ""Update bill"", bill: bill })
        }
      }
    });
});

app.post('/bills/new', function(req, res, next) {
    let newbill = new bill(req.body);
    newbill.save(function(err, savedbill)
    {
      if (err) 
      {
        console.log(err)
        res.render('bill-form', { bill: newbill, error: err })
      } 
      else 
      {
        res.redirect('/bills/' + savedbill.id);
      }
    });
});
app.get('/bills/:id', (req, res) =&gt; 
{
    let id = ObjectID.createFromHexString(req.params.id)

    bill.findById(id, function(err, bill) 
    {
      if (err)
      {
        console.log(err)
        res.render('error', {})
      } 
      else 
      {
        if (bill === null) 
        {
          res.render('error', { message: ""Not found"" })
        } 
        else 
        {
          res.render('bill-detail', { bill: bill})
        }
      }
    });
});

app.post('/bills/:id/update', (req, res, next) =&gt; 
{
    let id = ObjectID.createFromHexString(req.params.id)
    bill.updateOne({""_id"": id}, { $set: req.body }, function(err, details)
    {
        if(err)
        {
            console.log(err)
            res.render('error', {})
        }
        else
        {
            res.redirect('/bills/' + id)
        }
    });
});

app.post('/bills/:id/delete', (req, res) =&gt; 
{
    let id = ObjectID.createFromHexString(req.params.id)
    bill.deleteOne({_id: id}, function(err, product)
    {
        res.redirect(""/"")
    });
});

app.post('/api/bills', (req, res) =&gt; 
{
    let newbill = new bill(req.body)

    newbill.save(function (err, savedbill) 
    {
        if (err) 
        {
            console.log(err)
            res.status(500).send(""There was an internal error"")
        }
        else 
        {
            res.send(savedbill)
        }
    });
});

app.post('/api/bills', (req, res) =&gt; 
{
    bill.find({}, function(err, bills)
    {
        if(err)
        {
            console.log(err)
            res.status(500).send(""Internal server error"")
        }
        else
        {
            res.send(bills)
        }
    });
});

app.get('/api/bills', (req, res) =&gt; 
{
    bill.find({}, function(err, bills)
    {
        if(err)
        {
            console.log(err)
            res.status(500).send(""Internal server error"")
        }
        else
        {
            res.send(bills)
        }
    });
});

app.get('/api/bills/:id', (req, res) =&gt; 
{
    let id = ObjectID.createFromHexString(req.params.id)

    bill.findById(id, function(err, bill) 
    {
        if (err) 
        {
            console.log(err)
            res.status(500).send(""Internal server error"")
        }
        else
        {
            if (bill === null) 
            {
                res.status(404).send(""Not found"")
            } 
            else 
            {
                res.send(bill)
            }
        }
    });
  });

app.put('/api/bills/:id', (req, res) =&gt; 
{
    let id = ObjectID.createFromHexString(req.params.id)

    bill.updateOne({""_id"": id}, { $set: req.body }, function(err, details) 
    {
        if (err) 
        {
            console.log(err)
            res.status(500).send(""Internal server error"")
        } 
        else 
        {
            res.status(204).send()
        }
    });
  });

app.delete('/api/bills/:id', (req, res) =&gt; 
{
    let id = ObjectID.createFromHexString(req.params.id)

    Review.deleteOne({""_id"": id}, function(err) 
    {
      if (err) 
      {
        console.log(err)
        res.status(500).send(""Internal server error"")
      } 
      else 
      {
        res.status(204).send()
      }
    });
  });
});



app.listen(port, () =&gt; console.log(`Example app listening on port ${port}!`))
module.exports.app = app;
module.exports.schema = bill;
</code></pre>

<p>Then I have a javscript dedicated to testing</p>

<pre><code>let assert = require('assert');
let chai = require('chai');
let chaiHttp = require('chai-http');
let serverAndSchema = require('../index');
let server = serverAndSchema.app
let Bill = serverAndSchema.schema
let should = chai.should();
chai.use(chaiHttp);

describe('Bills', function() {
  describe('/GET bill', function() {

    it('should get the specified bill', function(done) {
      let expectedBill = new Bill({
        type: ""Test Type"",
        dueDate: ""12/3/2018T06:00:00.000Z"",
        company: ""Test Company"",
        amtDue: ""100"",
        paidStatus: ""Test Status""
      });

      expectedBill.save(function(err, savedBill) {
        chai.request(server)
          .get('/api/bills/'+savedBill.id)
          .end((err, res) =&gt; {
            res.should.have.status(200);
            res.body.should.be.a('object');
            res.body.should.have.property('type').eql(savedBill.type)
            res.body.should.have.property('dueDate').eql(savedBill.dueDate)
            res.body.should.have.property('company').eql(savedBill.company)
            res.body.should.have.property('amtDue').eql(savedBill.amtDue)
            res.body.should.have.property('paidStatus').eql(savedBill.paidStatus)
            res.body.should.have.property('_id').eql(savedBill.id)
            done();
          })
        });
      });
   });
});
</code></pre>

<p>The data is added to my database, but I get this error when I try to run the test:</p>

<pre><code>Uncaught TypeError: Cannot read property 'id' of undefined
  at 
C:\Users\Martae\Documents\Github\BillTracker\test\bill.js:29:46
</code></pre>

<p>Any help with this is appreciated!</p>
",https://stackoverflow.com/questions/53602898/mochajs-chaijs-uncaught-typeerror-cannot-read-property-id-of-undefined,"['javascript', 'web', 'mocha.js', 'chai']",791,FALSE,0,1
What&#39;s the difference between UI-Test and Rest?,"<p>I got this question while interviewing some companies. I don't think I answer the question well. However, based on my understanding:</p>

<p>The UI level testing is more about the what end user will see and would be better to use for acceptance testing.</p>

<p>The Rest test is good for performance testing, since it's easier to simulate multiple users to access the resource at the same time. And, it's easier to look at where the problem will be.</p>

<p>Can anyone give me more detail about that? And when should we choose to use which type of testing?? Thanks a lot. </p>
",https://stackoverflow.com/questions/48367474/whats-the-difference-between-ui-test-and-rest,"['java', 'rest', 'maven', 'bdd', 'ui-testing']",206,TRUE,3,2
How do you define functional testing with two popular and seemingly contradictory explanations?,"<p>I've been researching the definition of functional testing and can't come across a concrete explanation and would appreciate some additional info to help reconcile this.</p>

<p>The two main ideas I have come across are:</p>

<ol>
<li>Functional Testing as a Testing Type and is comprised of the following Testing Levels: Unit Testing, Integration Testing, System Testing and Acceptance Testing.</li>
</ol>

<p><a href=""https://i.stack.imgur.com/jRGTy.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/jRGTy.png"" alt=""enter image description here""></a></p>

<ol start=""2"">
<li>Functional Testing as a separate level from Unit Testing and Integration Testing (sometimes a subset of System Testing other times precedes it) that tests the product end-to-end with a Black-box approach. Purpose is to verify all functional specifications defined.</li>
</ol>

<p><a href=""https://i.stack.imgur.com/NIMIM.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/NIMIM.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/48614190/how-do-you-define-functional-testing-with-two-popular-and-seemingly-contradictor,"['unit-testing', 'testing', 'functional-testing', 'system-testing']",1375,TRUE,1,2
How should we test our application in Docker container?,"<p>We have a Java Application in a Docker Container with a Docker Db2 database 'side-car'.  In DevOps pipeline (Jenkins) we run unit tests, and integration test between components.  Run SonarQube and if all good, we move over to the Staging environment.  In the Automated Testing step we build application container using latest code base, we then proceed to run automated Acceptance Testing using Cucumber framework.  </p>

<p>Question is about the use of database for testing:  should we spin up a db2 in a new/isolated container, or use a 'common' DB2 container that the test team uses in that env for manual testing?  Best practices, proven approaches and recommendations are needed.</p>
",https://stackoverflow.com/questions/50490386/how-should-we-test-our-application-in-docker-container,['automated-tests'],224,FALSE,0,1
Mage_Core_Exception: Invalid block type - Block only working on development environment,"<p>We have a setup of 3 environments which are currently exact copies, and managed using GIT.
The environments:</p>

<ul>
<li>Develop (development)</li>
<li>Acceptance (testing)</li>
<li>Master (live)</li>
</ul>

<p>I developed a custom module for a block that displays some products. The module is active on all 3 environments, and shows up in the list of modules via the admin.</p>

<p>To display the block I use an XML update on a CMS page, this page is exactly the same on all 3 environments too.
Somehow the block is displayed on <code>Develop</code> but not on <code>Acceptance</code> or <code>Master</code>, while <code>Develop</code> does not log any errors or exceptions on the other environments I do get the following exception:</p>

<pre><code>2018-09-18T12:12:40+00:00 ERR (3): 
Mage_Core_Exception: Invalid block type: BeterSport_CustomUpsellList_Block_Customupselllist in /data/web/staging/app/Mage.php:595
Stack trace:
#0 /data/web/staging/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid block ty...')
#1 /data/web/staging/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout-&gt;_getBlockInstance('BeterSport_Cust...', Array)
#2 /data/web/staging/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout-&gt;createBlock('customupselllis...', 'customupselllis...')
#3 /data/web/staging/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout-&gt;addBlock('customupselllis...', 'customupselllis...')
#4 /data/web/staging/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout-&gt;_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /data/web/staging/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout-&gt;generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /data/web/staging/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout-&gt;generateBlocks()
#7 /data/web/staging/app/code/core/Mage/Cms/Helper/Page.php(113): Mage_Core_Controller_Varien_Action-&gt;generateLayoutBlocks()
#8 /data/web/staging/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page-&gt;_renderPage(Object(Mage_Cms_PageController), '231')
#9 /data/web/staging/app/code/core/Mage/Cms/controllers/PageController.php(45): Mage_Cms_Helper_Page-&gt;renderPage(Object(Mage_Cms_PageController), '231')
#10 /data/web/staging/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_PageController-&gt;viewAction()
#11 /data/web/staging/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action-&gt;dispatch('view')
#12 /data/web/staging/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http))
#13 /data/web/staging/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front-&gt;dispatch()
#14 /data/web/staging/app/Mage.php(683): Mage_Core_Model_App-&gt;run(Array)
#15 /data/web/staging/index.php(80): Mage::run('default', 'store')
#16 {main}
</code></pre>

<p>What could be the cause for the block to not work, and why does it work on <code>Develop</code>?</p>
",https://stackoverflow.com/questions/52387738/mage-core-exception-invalid-block-type-block-only-working-on-development-envi,"['magento', 'magento-1.9']",599,TRUE,0,2
"Codeception. Test database for acceptance tests, or functional tests for pure PHP","<p>Is there a way to run acceptance or functional Codeception tests for the application written on pure PHP and using test database???</p>
<p>Depends on documentation it's impossible to use test database for acceptance testing</p>
<blockquote>
<p>In acceptance tests, your tests are interacting with the application through a web server. This means that the test and the application work with the same database. You should provide the same credentials in the Db module that your application uses, then you can access the database for assertions (seeInDatabase actions) and to perform automatic clean-ups.</p>
</blockquote>
<p><a href=""https://codeception.com/docs/09-Data"" rel=""nofollow noreferrer"">Source</a></p>
<p>And from another hand looks like it's not possible to run functional tests on pure PHP because of functional tests require to use one of the framework modules.</p>
<p>I only start learning Codeception and can miss something?</p>
<p>thank you for any help!</p>
",https://stackoverflow.com/questions/49075232/codeception-test-database-for-acceptance-tests-or-functional-tests-for-pure-ph,"['php', 'codeception']",513,TRUE,0,1
Can I use an environment other than &#39;test&#39; for Ember tests?,"<p>I have Ember.js 2.16 acceptance tests written using the Ember template test libraries (QUnit and testem) that test the general functionality of an Ember app. When I run <code>ember test</code>, the 'environment' for which environment variables are retrieved is always set to <code>test</code>.</p>

<p>Is there a way to run <code>ember test</code> with any environment other than <code>test</code>? Running it with <code>--environment=""my_other_test_env""</code> doesn't change the environment as it would for <code>ember build</code> or <code>ember serve</code>. </p>

<p>I’d like to be able to pass parameters to acceptance tests depending on what environment they are running in. Is this behavior supported, and if not, is there a reason I shouldn't be doing this? I understand that for lower-level unit testing, I shouldn't be dealing with external dependencies, but for end-to-end acceptance testing, it seems normal that there would be different environments I would want to run the tests in.</p>
",https://stackoverflow.com/questions/51954680/can-i-use-an-environment-other-than-test-for-ember-tests,['ember.js'],513,TRUE,1,1
xamarin forms UWP tablet app windows 10 clicking on 2nd textbox closes keyboard,"<p>We are doing User acceptance testing on a Xamarin Forms UWP app targeting windows 10 tablet.  We are finding that when the user clicks on a textbox to enter data the soft keyboard appears as expected.  However, when the user then clicks into the next textbox to enter a second required piece of data, the soft keyboard hides/closes.  This results in the user having to double hit the second textbox (and any more than might need to be filled).  The first click hides the keyboard, the second then causes the keyboard to reappear.  To say the least this is not a good user experience.  I'm guessing maybe the focus of the second is firing before the lost focus of the first?  Has anyone else observed this behavior and is there any easy fix?  As may want to target both Android and Windows I'm hoping for a simple solution but maybe UWP just does has some problems?</p>
",https://stackoverflow.com/questions/48912820/xamarin-forms-uwp-tablet-app-windows-10-clicking-on-2nd-textbox-closes-keyboard,"['xamarin', 'uwp', 'textbox', 'keyboard', 'focus']",127,FALSE,0,0
Allure Jenkins behave BDD report generating blank report,"<p><a href=""https://i.stack.imgur.com/BwGY9.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/BwGY9.png"" alt=""enter image description here""></a><a href=""https://i.stack.imgur.com/9PKK2.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/9PKK2.png"" alt=""enter image description here""></a> I have integrated my Acceptance testing Python Behave BDD with Jenkins and wanted to generate HTML report using Allure report. I am not seeing correct results on Allure report, as all are blank/null.</p>

<p>I am getting the below message from jenkins console however the folders are empty and report has no data.</p>

<blockquote>
  <p>C:\Program Files (x86)\Jenkins\workspace\Scs Testing>cd C:\checkouts\scs\test </p>
</blockquote>

<p>C:\checkouts\scs\test>""behave --tags=@defrost_007 -f allure_behave.formatter:AllureFormatter  -o C:\checkouts\scs\test\TestResults  scs_acceptance_test/ ""</p>

<p>1 feature passed, 0 failed, 1 skipped
1 scenario passed, 0 failed, 98 skipped
5 steps passed, 0 failed, 356 skipped, 0 undefined
Took 0m9.663s</p>

<p>C:\checkouts\scs\test>exit 0 
[Scs Testing] $ ""C:\Program Files (x86)\Jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\allure_2\allure-2.5.0\bin\allure.bat"" generate -o ""C:\Program Files (x86)\Jenkins\workspace\Scs Testing\allure-report""</p>

<p>allure-results does not exists</p>

<p>Report successfully generated to C:\Program Files (x86)\Jenkins\workspace\Scs Testing\allure-report</p>

<p>Allure report was successfully generated.</p>

<p>Creating artifact for the build.
Artifact was added to the build.
Finished: SUCCESS</p>

<p>Could you please give me some input?</p>

<p>First image - there is a zip file creating for each build however it is not able to extract it</p>
",https://stackoverflow.com/questions/48759378/allure-jenkins-behave-bdd-report-generating-blank-report,"['jenkins', 'allure', 'python-behave', 'html-reports-jenkins']",1910,FALSE,2,2
Storing requirements/specification documents in TFS on-premise,"<p>We're starting a new development project using on-premise TFS 2018, git and Visual Studio. In the past we've followed the Agile model of creating epics and user stories and putting the requirements/ui mockups and other details directly in the user stories.</p>

<p>After living through that approach, we don't want go back down that road for the following reasons:
1) Once that feature is shipped, it becomes extremely difficult to locate the info. Who remembers what feature was done in what user story?
2) No centralized place to store feature documentation. Of course, we all don't want take the waterfall approach of spending 2 years writing feature requirements, but there is something to be said of having a centralized place organized by feature area that contains the relevant documentation.
3) Have you ever tried to read an extensive user story with requirements acceptance testing through either the web interface or through Visual Studio? It gets old pretty fast having to read through a 8 line window.</p>

<p>What we would like to do is do a hybrid of documentation and reference a link to the doc in the user story.  The user story exists for sprint tracking, but the details are stored in the document.  After the feature/user story has shipped, we can refer to the doc.</p>

<p>Therefore the question becomes how to store this type of info in TFS and link to it so it can open with a link in the user story.  We know we can do this with SharePoint, but is it possible to do in on-premise TFS?</p>
",https://stackoverflow.com/questions/52193141/storing-requirements-specification-documents-in-tfs-on-premise,"['sharepoint', 'tfs', 'documentation', 'requirements']",485,FALSE,2,1
SONAR quality gates on cross-projects,"<p>We have set up our branching strategy in Bitbucket in a way that for each release to production we create a new release branch in Bitbucket (User Acceptance Testing and then the  production release is done from this branch). Now for each feature to be developed in that release, we create a new feature branch and to merge the new feature developed from the feature branch to the release branch, we create pull requests.
When the pull request is created from a feature branch, we trigger the build in TeamCity which in turn connects to SonarQube server (Version 5.0.1). Sonar now creates a new project for this pull request (as I have specified sonar.branch property) and we can see the analysis on Sonar dashboard. 
Also on creating of a release branch in Bitbucket and on subsequent merges to release branch (from feature branch), we are triggering the build in Teamcity which connects to the same SonarQube server and creates a new project for this release branch.</p>

<p>Now we need to set up a quality gate in SONARQube that will check for the new blocker, critical and major issues introduced in the feature branch against the release branch. So the baseline for us will always be the release branch. Please note that we will have different projects in SONAR for each feature branch and release branch.</p>

<p>Is it possible to have Sonar Quality gates created on cross-projects? I think the SONARQube version 5.0.1, that we are using, doesn't have the capability - Is that correct? Is it possible in the latest SONAR versions?</p>

<p>Thanks and Regards,
Mitesh</p>
",https://stackoverflow.com/questions/48055782/sonar-quality-gates-on-cross-projects,"['sonarqube', 'teamcity', 'bitbucket', 'sonarqube5.1']",345,FALSE,1,0
Crystal Report to Adobe PDF font issue,"<p>I've searched in vain, off and on for several months, and still haven't found anyone else with this issue. Resolutions to similar issues aren't working for me or simply don't apply.</p>

<p>I have a web application written in Visual Studio.Net 2012 (C#/ASP.Net). The application pulls a small set of data from an Oracle table, and then uses Crystal Reports to throw that data onto a report page that is displayed by Adobe Acrobat within the browser. The Users then print out the individual Adobe Acrobat page as a 'coupon', and physically scans it into our document scanning system. This document scanning system DEMANDS a particular font, and here's the issue...Currently, the app is running in our production environment, and our User Acceptance Testing (UATest) environment. The Adobe Acrobat page is displaying a different font set for each web environment. On UATest, everything is displaying as it should. The font is OCR A Extended. It's a monospaced font that resembles the old Courier style.  On our production system, it's displaying what looks like Arial? Microsoft Sans Serif? I have no idea, but whatever it is, our scanning system doesn't like it and won't accept it.</p>

<p>The situation is what it is. I can't alter the river flow at this point. That means I'm stuck with the current methodology. Automating the process so that the data goes from website into the data tables on the scanner would be ideal, but that's not possible.</p>

<ul>
<li><p>The two web servers are both Windows Server 2012/R2.</p></li>
<li><p>The IIS setup is identical for both applications on both web servers.</p></li>
<li><p>I've synchronized all of the fonts and font settings on both web servers. They are exactly the same number and files for fonts on both machines.</p></li>
<li><p>The application is internal to our department, and access to it is controlled through Active Directory. Not sure if that matters for this, but better to have too much info than not enough.</p></li>
<li><p>The applications are identical, meaning that I've copied the entire application folder from the UATest machine where it displays the proper font, onto the Production machine where it doesn't.</p></li>
<li><p>The font is set correctly and shows correctly in the Crystal Report creator on the development machine (my local machine used to code, compile, and deploy the app).</p></li>
<li><p>The results are the same regardless of the browser used.</p></li>
<li><p>I've gone into the Crystal Report, Right Clicked -> Design -> Default Settings -> Fonts Tab. And then set the default fonts to OCR A Extended for each possible object.</p></li>
</ul>

<p>At this point, I've got my Users running the app from the UATest server. Not the most ideal solution, but it will have to hold until I find the fix for this.</p>
",https://stackoverflow.com/questions/49256921/crystal-report-to-adobe-pdf-font-issue,"['pdf', 'fonts', 'crystal-reports']",2323,FALSE,0,1
