back soft

مطالب مرتبط با «test» در back soft | نویسنده: استخدام کار

Antlr4: testing C#-parser

Vote count: 0 Is there something like grun (org.artlr.v4.runtime.misc.TestRig) for antlr4cs? (https://github.com/tuelvisionlabs/antlr4cs) I would like to avoid generating the java code, just to be able to test the grammar. asked 3 mins agoMuir Let's block ads! بخوانید...

ادامه مطلب

How to fix failed tests count in teamcity for re-executed tests?

Vote count: 0 We are using teamcity for selenium tests execution with specflow+specrun, the problem is that teamcity count re-executed tests, for example if some test failed for first time he will be re-executed two times more, in teamcity we will see that three tests failed, but probably it was one test. Also if first re-execution will fail, but other two will success, this will be reported in teamcity as two failed, one passed, but i need to be reported only that one test has been passed. Its possible to configure this in teamcity using service messages or something else? asked 59 secs agoShilovskoye Moloko Let's block ads! بخوانید...

ادامه مطلب

HitTestObject Both MovieClip Actionscript 3.0

Vote count: 0 I want to make a player and 2 Circles. When the player hit the first Circle, then the Circle will also move as like player. Continue with the second Circle, if the second circle get hit by the first circle (while the player is moving and pushing the first circle), the second circle will also move as like player's speed movement! Can you solve the problems, please ... :) Thank You! asked 2 mins agoJohnsonterry992 Let's block ads! بخوانید...

ادامه مطلب

Test Case structuring in Python

Vote count: 0 So, I'm currently working on a large piece of code, and I'm currently working on converting it to a package. However, in my reading, it occurred to me that I should probably implement tests into my code, partly for organisation, and partly to make everything easier to mange. However, my problem is that I'm not sure where I should put tests. Should I put them in the main code, or should I create seperate test files. If anybody could tell me what the generally accepted technique for this is, and possibly provide some examples. Many thanks, Eis Massey asked 3 mins agoMicroTransactionsMatterToo Let's block ads! بخوانید...

ادامه مطلب

Connect cucumber test modules

Vote count: 0 Cucumber test cases are written for each components/modules. Now trying to coect them together. Few ideas 1) Create a new integration project by reusing the code from each modules to create end to end flow. I feel with this approach there be single big project which is nothing but code snippets copied from each moudules which later becomes hard to sync and maintain 2) Make each of these cucumber test cases talk to each other. First module will process, dump the data and second will pick up and process something like use common database table or queue Any suggestions or thoughts asked 1 min agoMJ01 Let's block ads! بخوانید...

ادامه مطلب

UI Testing with React/Mocha/Chai - How to test width of element

Vote count: 0 I'm leaing how to do some testing on a UI component in react. I've run into an issues - I have a scenario where, to start, an field has a width of 0px. User clicks a button, and the width animates to 200px. User clicks a button again and the contracts to 0px again. The issue I'm ruing into (using Chai Jquery) is that when selecting .width() of a component it is always retuing 0px. Some googling indicates that this happens in Jquery because the DOM hasn't loaded yet. Is there a way to call componentDidMount() in the test, and make the assertion after that? asked 1 min agoKiresuah Let's block ads! بخوانید...

ادامه مطلب

Hibernate unit test blocks on an insert statement

Vote count: 0 We are currently facing an issue with hibeate unit testing. Using Hibeate + JPA + Spring + junit + Maven + below is the persistence configuration: Spring JPA LocalContainerEntityManagerFactoryBean org.hibeate.ejb.HibeatePersistence One of the developers created an unit-test and hibeate simply blocks at one insert statement. No errors, no logs, except the following in console: Hibeate: insert into role (details, name) values (?, ?) Hibeate: insert into permission (details, name, state) values (?, ?, ?) Hibeate: insert into role_permission (permission_id, role_id) values (?, ?) Blocks at the last one. On the author's machine (the one who created the unit test) all is well and wor...

ادامه مطلب

Setting maxlag for ADF test with python statsmodels not working?

Vote count: 0 I've tried setting the maxlag with the ADF test in statsmodels but the number of lags being used by the test is not what I set it as. It is almost always less. Here's a small example of what I mean. import numpy as np import statsmodels.tsa.stattools as ts x = np.array([1,2,3,4,3,4,2,3]) result = ts.adfuller(x, 1) # maxlag is now set to 1 >>> result (-2.6825663173365015, 0.077103947319183241, 0, 7, {'5%': -3.4775828571428571, '1%': -4.9386902332361515, '10%': -2.8438679591836733}, 15.971188911270618) The maxlag is set to one, but in the result it says the max lags used is 0 corresponding to the third entry in result. Can anyone explain why this is happening and possibly how to ...

ادامه مطلب

How to upgrade AWS CLI to latest version?

Vote count: 0 I recently noticed that I am ruing an old version of AWS CLI that is lacking some functionality I need: $aws --version aws-cli/1.2.9 Python/3.4.3 Linux/3.13.0-85-generic How can I upgrade to the latest version of the AWS CLI (1.10.24)? asked 1 min agoBorealis Let's block ads! بخوانید...

ادامه مطلب

Rails RSpec/Cucumber tests fail because ActionMailer runs after DatabaseCleaner

Vote count: 0 In my Rails app, I have a couple of controllers where I have an after_action hook that sends an email through an ActionMailer. Like so: after_action :send_notifications, only: [:create, :update] def send_notifications case @record.status.downcase when 'review', 'corrected' RecordNotifier.received(@record).deliver_later when 'rejected' @rejection = Rejection.where(record_id: @record.id).last RecordNotifier.rejected(@record, @rejection).deliver_later when 'submitted' @form = Form.find( @record.form_id ) RecordNotifier.submitted(@record).deliver_later end end My problem is that my test suite fails randomly because sometimes a mailer will still need to finish executing after the sp...

ادامه مطلب

search an xml file for specific attribute values in testcomplete

Vote count: 0 I have this one xml file in which i need the value of the specific tag. I am using testcomplete as a tool and using c# script to code it in. Any suggestions on how to do it? asked 53 secs agoDixit Salecha Let's block ads! بخوانید...

ادامه مطلب

how to perform test to the GridView in onclick position

Vote count: 0 I write a testing to the Grid View to count the number of items in the grid. i want to perform onclick to the grid view here is a my mainActivity class public class MainActivity extends AppCompatActivity { GridView gridView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); gridView = (GridView) findViewById(R.id.gridview1); gridView.setAdapter(new ImageAdapter(this)); gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView parent, View v, int position, long id) { // Send intent to SingleViewActivity Intent i = new Intent(getApplicationContex...

ادامه مطلب

Can't run JUnit tests in Play Framework and Eclipse

Vote count: 0 I'm trying to run some JUnit tests for my Play framework project but when I run a test I get the following error message: Class not found ApplicationTest java.lang.ClassNotFoundException: ApplicationTest at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.eclipse.jdt.inteal.junit.ruer.RemoteTestRuer.loadClass(RemoteTestRuer.java:685) at org.eclipse.jdt.inteal.junit.ruer.RemoteTestRuer.loadClasses(RemoteTestRuer.java:421) at org.eclipse.jdt.inteal.junit.ruer.RemoteTestRuer.runTests(Remo...

ادامه مطلب

How to get the latest date for a specific day of the week in Bash

Vote count: 0 Q: How can the latest date for a given_day_of_the_week? Example: For example if today is the 2016-04-21, I just want to get the date for a given_day_of_the_week for example Monday which would be the 2016-04-18. This date will be still retued if the code was run tomorrow, up until the day before the following given_day_of_the_week. Explanation: The code should retu the latest given_day_of_the_week's (Monday) date until the Sunday 2016-04-24, then the same bit of code ruing will retu the 2016-04-25 next week. asked 1 min ago3kstc Let's block ads! بخوانید...

ادامه مطلب

How to find the shortest path with the minimum number of hops in Neo4j?

Vote count: 0 Im modeling a graph where nodes are places and edges indicate that you can go from one place to another. This is to have all routes that you can take from a place to another, and you can go from a place to another by different routes, so I want a query that retus me the shortest path with the minimum different routes. For example, I want to go from A to D, I have two possible paths: (place {name: "A"})-[:FOLLOWS{route:""R1}]->(place{name: "B" })-[:FOLLOWS{route:""R4}]->(place{name:"C"})-[:FOLLOWS{route:""R2}]->(place{name:"D"}) (place {name: "A"})-[:FOLLOWS{route:""R1}]->(place{name: "B" })-[:FOLLOWS{route:""R1}]->(place{name:"F"})-[:FOLLOWS{route:""R2}]->(place{name:"D"}) In t...

ادامه مطلب

Not able to run iOS Appium tests when using node

Vote count: 0 I've been ruing my iOS appium tests using the Appium.app without issue. I want to try using node + appium package instead but I'm ruing into the error displayed below. I've tried reinstalling node and the appium and wd packages but the issue still persists. I've allowed OSX to accept incoming coections from node as well. [Appium] Welcome to Appium v1.5.1 (REV c330ee9862bbc0db7d604e3b395cd1226417a9b9) [Appium] Appium REST http interface listener started on 0.0.0.0:4723 [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s","app":"/Users/User/Downloads/AppToTestSimulator.app (5).zip","autoAcceptAlerts":"false"...

ادامه مطلب

Node.js mocha testing: AssertionError: expected true to be false

Vote count: 0 I wrote a mocha script for testing my phonegap app. Here is the code: var AccountController = require('../controllers/account.js'), mongoose = require('mongoose'), should = require('should'), uuid = require('node-uuid'), crypto = require('crypto'), User = require('../models/user.js'), UserMock = require('./user-mock.js'), MailerMock = require('./mailer-mock.js'), ApiMessages = require('../models/api-messages.js'); var session = {}; describe('AccountController', function() { var controller, seedUsersCount = 10, testUser, userModelMock, mailMock; }); beforeEach(function(done) { userModelMock = new UserMock(); mailerMock = new MailerMock(); controller = new AccountController(userM...

ادامه مطلب

iOS testing with XCTest and separate file

Vote count: 0 Currently, I write my testing in 1 file (default). Is it possible to have multiple files and test? - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the class. [super tearDown]; } - (void)testExample { // This is an example of a functional test case. XCTAssert(YES, @"Pass"); } asked 6 mins agoKhant Thu Li Let's block ads! بخوانید...

ادامه مطلب

Digit span test (Memory Game) VB .Net [on hold]

Vote count: 0 Im creating a memory game in vb .net its called digit span test. the game will show to random numbers and hide then it will ask what number it shows. Im a begier in VB net so i dont know how to start. asked 56 secs agoChristian Larvin Melgar Let's block ads! بخوانید...

ادامه مطلب

TestFlight is best suited for iOS and Android - Device Testing?

Vote count: -1 I want to share my iOS and Android App executable to testing team while development. So I want to know, is TestFlight best suited for iOS and Android(Or any alteative to TestFlight) - Device Testing ? asked 1 min agoGMCS Pune Let's block ads! بخوانید...

ادامه مطلب