@ptt-bds Bác có 10 luồng thì đầu tiên nếu không có gì xảy ra nó sẽ lấy 10 dòng đầu tiên, sau đó thì cứ luồng nào "ra đi" nó sẽ lấy dòng tiếp theo, đâu có theo quy luật như 1,11,21,31 vs luồng 1 như bác nói đâu.
Data Feeding for Signup on Loop
-
I want to signup website on loop. it should retrieve name,mailid,password from text file stored locally and use it for signup.
every time it runs it should use these data one by one uniquely.How can i do this.
-
For this purpose you need to use resources. Any type of work that includes multithreading is possible by resources. Not static reading files. Create a function and name it "onApplicationStart" (it actually offers you to name it like this when you try to create a new one). use "Read File To List" method in Filesystem. Then create a new resource and lastly "List To Resource". Now try to read, get and parse data from the resource you created.
-
I am not asking multithread. In single thread, running 50 loops.
-
@pirkhezr I need help on loop. not multi thread.
-
@sarankavalan {{resource_name|notreuse}} use
|notreusein your resource name when you using it -
You can use "read file to list". And then on the list module, use "first element" and check "delete after". So now you are reading the first line, saving it into a variable and you can do anything afterwards. However, this is not how BAS is intended to be used. Just try to use resources and then you'll see the magic.
-
ya thank you guys.