c#


How can i run same codedUi order test with different CSV file(DataSource)


In codedUi test i'm accessing data from CSV file as below
e.g.
[DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "C:\\Datafile\\File1.csv", "File1#csv", DataAccessMethod.Sequential), DeploymentItem("File1.csv"), TestMethod]
public void method1()
{
String value = TestContext.DataRow["column1"].ToString().Trim();
}
But, problem with above code is that data-source file name is hard coded here.
Is there anyway to specify file name dynamically?I want to run same test using different CSV files.

Related Links

AutoCAD Commands Not Loading When Drawing Opened
C# - Visual Studio is forced terminated when UserControl is added on other control [duplicate]
Reading String[] Array in a gridview cell
Enabling List item of DropdownList in c# asp.net
Excel reader return null value with no reason c#
Sending .txt file to client c#
HttpContent: An item with the same key has already been added
Why do I get SQL exception when calling a .Net WCF Service?
How to load two partial views when clicking a component?
How do I resolve the “Node Out Of Date” exception in SenseNet?
Setting Excel filter-hidden range value
Return to refreshed previous page from controller
How to Entity Query From M2M Relationship Table? (MVC)
how to delete a line from text file that is saved inside a string variable
event not fired for the second time to load data from a database
How to sort files from a listBox and its list of Strings into another

Categories

HOME
asp.net
max
joomla
gulp
ssms
grizzly
azure-documentdb
macros
network-programming
cors
okhttp3
snmp
servicenow
flowtype
install
virtualhost
google-search-appliance
guidewire
mbed
cakephp-2.0
bookmarklet
wallet
project-reactor
google-street-view
gpo
url-parameters
jq
nsopenpanel
mex
bytebuffer
request-uri
ipython-parallel
exacttarget
tikz
qt-designer
ilog
restler
machine-code
pyenv
mkdir
gstreamer-1.0
iterm2
ng-lightning
jvisualvm
datagridviewcombobox
synchronized
line-endings
stream-socket-client
nao-robot
spring-cloud-bus
jenkins-docker
hellosign
blackberry
google-scholar
spring-social-twitter
racket-student-languages
angularfire
periodic-processing
wordpress-plugin
clear
yfiles
commercetools
producer-consumer
vanilla-forums
joomla3.3
eaaccessory
teamwork
teamstudio-unplugged
nsurlrequest
zoneminder
step
rda
hotlinking
image-preloader
mixradio
starling-framework
mongoid4
ardor3d
extensibility
source-depot
nx
microsoft-speech-platform
mail-gem
doxia
certificate-revocation
nsscrollview
pdf-reader
socketasynceventargs
sqlbuddy
pinchzoom
symfony-1.2
qvariant
chars
table-valued-parameters
numerical-computing
file-storage
retrospectiva
content-delivery-network
vista64

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App