I'm creating an automation script using CodedUI (Visual Studio 2013 Premium), where I want to perform assertion on "Proc 0001M-0005MZZ" which is my expected value. Can anyone please help me out?
Thanks in advance! :)
Use the Assert class which has several methods for assertions -
i.e IsTrue() and each of those has several overloads
for different situations.
Related
I have a library of functions written in JavaScript, for example myfactorial(n) can caculate the factorial of n in my way.
I would hope to develop an add-in by JavaScript API for Excel, such that once a user loads the add-in, they could use the embedded functions, e.g., write in a formula: =myfactorial(A2) or =callfunction("myfactorial", A2). In short, it is about supporting User Defined Functions by JavaScript API for Excel, I guess they are asking the same thing here.
So, does any know how is the progress? Otherwise, is there some workaround that we could do?
Thanks for this question! User-defined functions are a central part of Excel customization today. We're working on a solution that will bring those capabilities across all our modern Excel platforms. We're still figuring out the design, so unfortunately I don't have a timeline or details to share right now. I'll give an update in a few months.
-Michael, PM for Office add-ins
Update 11/6/17: JavaScript custom functions in Excel are now available in Developer Preview for anyone to try: https://aka.ms/customfunctions
I used to convert XSD files to CS files using the XSD.exe program.
I made a custom MSBuild Task to do that and it works quite well.
Now, I try to find an MSBuild Task to do it because I don't want to maintain my custom task anymore.
I found the XsdTypeImporterTask from the assembly XsdBuildTask.dll which seems to do that, according to the MSDN documentation.
However, that documentation is really poor and I didn't succeed to make it work, not even to import it in MSBuild :'(
I tried to Google and to StackOverflow this but didn't find anything about that.
Does someone on Earth use this Task?
Can someone help me using this Task?
Thanks a lot!
Well, after succeeding to use it, I can say that someone used it: me.
This page helped me understand how to use it.
It works very well!
I am re factoring large sets of tests in SoapUi.
Is there a way to automate creation and renaming of test cases/test steps through Groovy?
Thanks.
Possibly not what you're looking for but I've had some success manually editing the test suite xml using find and replace in a text editor. You need to be careful and make sure to back up a copy.
You can run Groovy code within SoapUI using SoapUI Groovy Console plugin. This way, you can change any property you want programmatically (within API constraints of course).
As for technical details on how to solve your actual problem, I can only refer you to this blog post and SoapUI's javadoc. Based on the blog post, you need to figure out what's given to you, and based on the API, you need to figure out how to achieve what you need.
In my case, I started with my project being bound as a project variable, and moved on from there.
There is really not so much information in the question about what you really need to achieve, but given the little you provided, one way to go would be to directly modify the soapUI project XML file. I have done this with some success in the past. The last I used soapUI, it UI did not come with massive refactoring functionality.
Suppose I am running scripts by reading data(including runmode) from an XLS and storing the results also in a new copy of the XLS, what exactly would be the role of TestNG in the framework? Please help.. Thanks in Advance!!
Rajesh
TestNG is not just to manage the way you read your input parameters/data etc. It actually does a lot more. Try to answer these questions -
- How do you invoke some method always on a Class load ?
- How do you invoke some method before/after each method within your test ?
- How do you tell which is your test ?
- How to generate an HTML based report based on the log statements you have ?
The answer to above queries (if TestNG was not there) would have been really complex and would require quite some coding experience.
As suggested earlier, please read the info about TestNG and how it can be efficiently utilized and then again try to answer the above questions in this post.
Sahi allowed me to enter the desired functions into a spreadsheet and then it would run those functions. Different combinations would result in different scenarios.Can i do something similar using selenium? I want to pick and call tests/scripts/functions through an excel file. I am currently using the testng framework to get data from excel files.
Thanks
Please check out the following blog for a relative answer on using data provider using TestNG for Selenium.
http://blog.varunin.com/2011/10/data-driven-testing-using-junit-and.html
There is no out of the box support. Spock framework has an excellent support for data-driven tests. A combination of PageFactory, Spock and Selenium2/WebDriver can provide you more than what you are looking for.
Sure, you could use a framework such as POI to read your Excel spreadsheet and return these values in a #DataProvider.