automated-tests

UI Automation White framework “NonComVisibleBaseClass was detected” exception

泄露秘密 提交于 2020-08-02 08:11:47
问题 I am testing an application which loads a powerpoint (.ppt or .pptx) file insert it. Application gives same look an feel like powerpoint with some extra setting when the file is loaded inside the application. When I try to automate the application, I click a button to load the powerpoint file into the application. After the loading process white framework fails to continue playback. When I restart the same test again I got " NonComVisibleBaseClass was detected " exception. I can only continue

javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite

我是研究僧i 提交于 2020-07-31 03:53:05
问题 I recently updated my chrome version to latest i.e. 79.0.3945.130 (Official Build) (64-bit) and downloaded compatible chromedriver from here I've started facing this error. While debugging in detail i found that the Select class causing the issue. wherever I'm selecting a dropdown in my code I'm getting this issue. The HTML of dropdown looks like below snippet: <div class="rd-input--wrapper" id="178"> <label for="attribute178">Flavour</label> <select name="super_attribute[178]" data-selector=

javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite

 ̄綄美尐妖づ 提交于 2020-07-31 03:53:00
问题 I recently updated my chrome version to latest i.e. 79.0.3945.130 (Official Build) (64-bit) and downloaded compatible chromedriver from here I've started facing this error. While debugging in detail i found that the Select class causing the issue. wherever I'm selecting a dropdown in my code I'm getting this issue. The HTML of dropdown looks like below snippet: <div class="rd-input--wrapper" id="178"> <label for="attribute178">Flavour</label> <select name="super_attribute[178]" data-selector=

How to catch the <mat-error> error message text content using Protractor

佐手、 提交于 2020-07-22 05:53:09
问题 I'm dealing with below element and having trouble with getting the error message text in to a variable. <mat-error _ngcontent-c16="" class="mat-error ng-star-inserted" id="error-email-required" role="alert" style=""> Email is a required field </mat-error> Catching the element is straight forward. var emailReqiredLabel = element(by.id('error-email-required')); I tried below options but all printing as >> visible error message is : [object Object] var errormsg = emailReqiredLabel.getText()

Editing the configuration file using python script

谁说胖子不能爱 提交于 2020-07-20 06:09:46
问题 I have a config file like below .... .... MIN_TOKENS='30 50' # can be a sequence of integers STRIDE='2 0' # can be a sequence of integers SIMILARITY='1.0 0.95' # can be a sequence of values <= 1 .... .... I need to edit the parameters to each of the above configurations(if needed) and test if the edited parameter suits my need by running my application. I need to automate this process using python script. For example: I need to change the config file to something like .... .... MIN_TOKENS='30

Verify the data of the downloaded file (PDF/Word/Excel) using cypress commands

可紊 提交于 2020-07-19 05:48:08
问题 I have one scenario where I have to verify the downloaded file's data using Cypress commands. FileType :- pdf, word, excel. I have the URL of the Server API Action which gets called and In response, it returns the pdf file. I need to implement using Cypress commands and Typescript (plugin and typings). I am able to get the downloaded status and even the response.body has some text but it require some parser to parse the response body. Below is the code that I have tried. const oReq = new

Verify the data of the downloaded file (PDF/Word/Excel) using cypress commands

时光总嘲笑我的痴心妄想 提交于 2020-07-19 05:45:26
问题 I have one scenario where I have to verify the downloaded file's data using Cypress commands. FileType :- pdf, word, excel. I have the URL of the Server API Action which gets called and In response, it returns the pdf file. I need to implement using Cypress commands and Typescript (plugin and typings). I am able to get the downloaded status and even the response.body has some text but it require some parser to parse the response body. Below is the code that I have tried. const oReq = new

How to design data driven dependent scenarios testing?

梦想与她 提交于 2020-07-16 10:45:06
问题 I read its NOT best practice to write dependent test scenarios. But what if an application is heavily data-driven and manipulates (creates, multiple update flows, logically deletes) data. Basically, we want to minimize: Test data creation for each dependent scenario (ex. updates need creation of data first) re-execution of steps Overall test suite execution time Question: In order to control the execution of threads, can I can extend Karate core classes which handles @parallel=false and add

Cypress - How can I run test files in order

若如初见. 提交于 2020-07-06 19:17:57
问题 When I press the "run all specs" button or use the run command that runs all files in Cypress it runs all test files alphabetically, so I don't want that. I want to sort all of them with my own rules. Let's say I have 3 steps in a chat app test. Can connect the chat app Can connect the chat Can the user send a message I want to test every step without being tied to each other. What I mean, Testing one of their own function. What I do is as follows chat_app_connect.spec.js describe('Server

Cypress - How can I run test files in order

夙愿已清 提交于 2020-07-06 19:11:47
问题 When I press the "run all specs" button or use the run command that runs all files in Cypress it runs all test files alphabetically, so I don't want that. I want to sort all of them with my own rules. Let's say I have 3 steps in a chat app test. Can connect the chat app Can connect the chat Can the user send a message I want to test every step without being tied to each other. What I mean, Testing one of their own function. What I do is as follows chat_app_connect.spec.js describe('Server