webtest

X-RequestDigest: Getting error while running recorded web test of sharepoint page

三世轮回 提交于 2019-12-20 07:46:23
问题 I have recorded and replayed my sharepoint webtest successfully but after a week or two, I get '403 FORBIDDEN' error when I replay it in Visual Studio. I understand that X-RequestDigest has expired certificate/token details and needs to be updated for every run in my request. However, I'm unable to find preceding X-RequestDigest header value in my recorded web test. I'm able to extract from response header but I need to bind the value to request prior to response? Can someone give me a code

Web test details are not displayed when ran from an ordered test

廉价感情. 提交于 2019-12-20 04:13:31
问题 I have an ordered test that contains 4 web tests. The problem is that Visual Studio seems to have a problem loading the test results for an individual test. I included a screenshot to supplement for the 1000 words. :) As you may see the 3rd test, called intuitively Webservice03, failed. The screenshot above was taken after I double-clicked on the corresponding line to open the detailed information about that test run. The panels with requests and other useful information are empty. The issue

Using apache ant commands to store value to excel cell

 ̄綄美尐妖づ 提交于 2019-12-18 09:48:02
问题 I was curious if it was possible to store values into excel spreadsheet cells? And if so, how would one go about completing this? I also have multiple values that I would like to store into the same excel sheet but in different cells (like A2 or B1). For example, say that I have a value that I want to stick into cell A1, right now, I can actually using this command: <echo append="true" file="file.xls" message="1" /> This will store "1" in cell A1 and if I ran the same command again, it would

Is there a headless browser for .NET (for automated Web-UI-Tests)?

痞子三分冷 提交于 2019-12-17 19:36:17
问题 Is there a headless browser for .NET? I am looking for this in a testing context. Coming from Java I am thinking of something similar to HtmlUnit (http://htmlunit.sourceforge.net/) which itself is the base for different higher level tools like Canoo WebTest or Celerity. I would like to create automated UI tests for web applications in a .Net environment, but not using Browser-Remoting (Watin, Selenium...) If possible, I would like to stick to a .Net solution and avoid using Java or Ruby tools

Extract Text from Response Body in Coded Webtest using vb

∥☆過路亽.° 提交于 2019-12-13 09:37:24
问题 I have a Web performance Script in Visual Studio. I have turned this into Coded Webtest in VB by clicking on the Generate Code button. In my web test there are a 5 functions. Apart from the 1st the others are for SQL Procedures. Among a few things, I need a web request that does a certain action. Based on that action, In the response body - it generates a Unique Id. I need this Id to make it accessible across all the functions. The Response body is something like this : 0x00000000 7B 22 69 64

Visual studio web test for api request failure 'Invalid HTTP header characters'

别等时光非礼了梦想. 提交于 2019-12-13 07:10:37
问题 I'm trying to hit a Oauth2 secure Web API from a visual studio web test. I'm using a custom WebTestPlugin and custom WebTestRequestPlugin. The web test plugin simply gets the token from azure active directory and shoves into the request. That seems to be working just fine. I can see the outgoing request for the token comes back in fiddler. I use a web test request plugin to generate a json string string for the outgoing POST request to the API. I can't see that request getting fired off. I

Cannot find a dependent request in webtest

£可爱£侵袭症+ 提交于 2019-12-13 03:23:28
问题 I have recorded a test with my webtest recorder in VS2015. When I am rerunning the test,at one point it fails at a dependent GET request of a .css file. The url in the webtest result shows something like this https://mycompany/blah/ Style%20Guides/Global_CSS.css The error is a simple 404 error. Now I go to the main request and search for this particular dependent request so that I can set its Parse_Dependent_Request option as False or set the Extected_Http_Status_Code as 404, which ever works

Writing doctests for pyramid web app which depend on settings in ini file

走远了吗. 提交于 2019-12-13 02:08:44
问题 I would like to write doctests for my pyramid web app, using the webtest module. I tried it like this: from my_webapp import main from webtest import TestApp app = TestApp(main({})) result = app.get('/') This raises a KeyError (because some.url is not known) when my code reaches this line: url = request.registry.settings['some.url'] The value of some.url is specified in the paster ini file of my application. Is there a simple way to use my development.ini when running my test code? I did not

Unit testing Bottle app with WebTest

杀马特。学长 韩版系。学妹 提交于 2019-12-13 01:43:02
问题 I've been attempting to familiarize myself with unit testing but have been having a lot of trouble with it. I have a bottle app that I tried using Unittest, which didn't seem appropriate, so now I'm trying WebTest. The trouble is that I can't get it to even remotely work, even following along with the most basic/superficial example on the site. Here's the example: from webtest import TestApp import mywebapp def test_functional_login_logout(): app = TestApp(mywebapp.app) app.post('/login', {

how to impersonate a windows domain user for automated web testing?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 19:49:50
问题 we are about to build several UI test with selenium-rc and the java client the app itself is a classic asp web application that uses integrated security to retrieve the user's permissions from a database, and then, according to those permissions, displays a menu with the appropiate options. we'd like to automate that test, something like if the logged user is domain/user_test then optionx shoulb be enabled ... is there some way to programatically impersonate a domain account, so that