end-to-end

Protractor with Firefox (32 latest) browser not loading

末鹿安然 提交于 2019-12-04 09:37:39
So for some reason, when I run protractor, Firefox (32 latest) just opens with an empty browser and doesn't navigate to the baseURL. The tests I have written work fine with chrome, but not with firefox. It probably has something to do with the way the conf file is set up. Any ideas? Conf file: exports.config = { allScriptsTimeout: 11000, specs: [ 'e2e/*.js' ], multiCapabilities: [ { 'browserName': 'firefox' }, { 'browserName': 'chrome' } ], chromeOnly: false, chromeDriver: 'e2e/chromedriver/', baseUrl: 'http://localhost:9000/', framework: 'jasmine', jasmineNodeOpts: { defaultTimeoutInterval:

Check POST request payload data with Protractor

扶醉桌前 提交于 2019-12-03 16:59:15
Let's say i have angular page with a couple of input elements and save button. After Save button is clicked POST request will be sent. I'm writing Protractor e2e test for this page. The question: How can i check with protractor POST request payload data after app is sent it or before sending? I want to be sure that my app will sent right data in POST request. Following @Andres D's comment: yes, there is a misconception here. protractor is a tool that helps you mimic real-user interactions with a page by automating a real browser. It stays on the high-level, sees what a normal user can see -

Protractor + Hybrid Angular 1+2 Application = Fail

倾然丶 夕夏残阳落幕 提交于 2019-12-03 16:05:24
Protractor works well on Angular 1 but after upgrading my app to an hybrid Angular 1+2 I get this error: Failed: Error while waiting for Protractor to sync with the page: "[ng:test] no injector found for element argument to getTestability http://errors.angularjs.org/1.4.9/ng/test " It seems a common error when you don't have a ng-app tag <div ng-app=myAppManager"> in your Angular 1 app and can be easily fixed wiyh rootElement : 'html' in your protractor config file but it doesn't seem to change anything on hybrid app. I tried rootElement : 'html' or even useAllAngular2AppRoots: true . I

How can I do a Ctrl+Click on protractor?

你离开我真会死。 提交于 2019-12-03 15:17:00
I have tried weird combination as the following, but none of them are working: var ptor = protractor.getInstance(); ptor.actions().mouseMove(node).keyDown(ptor.Key.CTRL).sendKeys(ptor.Key.CLICK).perform(); You need to chain mouseMove() , keyDown() and click() : var elm = element(by.id('my_id')); browser.actions() .mouseMove(elm) .keyDown(protractor.Key.CONTROL) // COMMAND for Mac .click() .perform(); Tested it on Chrome by clicking on a link - opens up a link in a new tab. Note that, starting with protractor 1.5, there is a global browser object that should be used instead of protractor

End to end integration test for multiple spring boot applications under Maven

纵饮孤独 提交于 2019-12-03 05:50:50
问题 What is the recommended way of running an end to end integration test for multiple Spring boot applications in the Maven build's verify phase? Basically, I have a multi-module Maven project where several modules are separate spring boot applications. These separate applications have their own configuration for data sources, integration flows with JMS queues, etc. For example, application A will poll a database for an event, and when that occurs, it produces a JSON file of data and puts a

What best practices do you use for testing database queries?

旧城冷巷雨未停 提交于 2019-12-03 00:19:07
I'm currently in the process of testing our solution that has the whole "gamut" of layers: UI, Middle, and the omnipresent Database. Before my arrival on my current team, query testing was done by the testers manually crafting queries that would theoretically return a result set that the stored procedure should return based on various relevancy rules, sorting, what have you. This had the side effect of bugs being filed against the tester's query more often than against the actual query in question. I proposed actually working with a known result set that you could just infer how it should

Using Tensorflow's Connectionist Temporal Classification (CTC) implementation

牧云@^-^@ 提交于 2019-12-02 17:19:31
I'm trying to use the Tensorflow's CTC implementation under contrib package (tf.contrib.ctc.ctc_loss) without success. First of all, anyone know where can I read a good step-by-step tutorial? Tensorflow's documentation is very poor on this topic. Do I have to provide to ctc_loss the labels with the blank label interleaved or not? I could not be able to overfit my network even using a train dataset of length 1 over 200 epochs. :( How can I calculate the label error rate using tf.edit_distance? Here is my code: with graph.as_default(): max_length = X_train.shape[1] frame_size = X_train.shape[2]

Not able to select an element using protractor virtual repeat

老子叫甜甜 提交于 2019-12-02 06:50:04
问题 I was able to select an element using ng-repeat but the developers have used virtual repeat as such the following code does not work now expect(stores.listStores(0).getText()).toContain('Prahran'); expect(element.all(by.repeater('store in ui.stores')).count()).toEqual(1); Failed: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator by.repeater("store in ui.stores") 回答1: You can make a CSS selector to match the material design repeater

How to test html links with protractor?

最后都变了- 提交于 2019-12-01 18:13:36
I am new to protractor and would like to test if a link is working. I understand trying to get the element id but what should i expect that the link equals? Also has anyone got any good documentation on example protractor tests? I have been through this http://angular.github.io/protractor/#/tutorial which was helpful but i need more example of possible tests I could do. i have this so far: it('should redirect to the correct page', function(){ element(by.id('signmein').click(); expect(browser.driver.getCurrentUrl()).toEqual("http://localhost:8080/web/tfgm_customer/my-account"); }); alecxe would

How to test html links with protractor?

可紊 提交于 2019-12-01 17:49:29
问题 I am new to protractor and would like to test if a link is working. I understand trying to get the element id but what should i expect that the link equals? Also has anyone got any good documentation on example protractor tests? I have been through this http://angular.github.io/protractor/#/tutorial which was helpful but i need more example of possible tests I could do. i have this so far: it('should redirect to the correct page', function(){ element(by.id('signmein').click(); expect(browser